[roll pigweed] pw_presubmit: Don't use colors for non-TTYs

Don't use colors in output if the output device is not a TTY. This
should make formatting errors easier to read in CI/CQ.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/104782

https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: 54e1155d7f3c250..c0a7f432f9677cd
Roller-URL: https://ci.chromium.org/b/8806834040613074321
Cq-Cl-Tag: roller-builder:pigweed-zephyr-roller
Cq-Cl-Tag: roller-bid:8806834040613074321
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I49ec207aac8a6ea403ec94ed7dc25b764efd9863
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/104809
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed
tree: f7f920b3edcde8d842f57409d31b915aa652794f
  1. .gitmodules
  2. test.sh