We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f99073c commit 879a6c0Copy full SHA for 879a6c0
src/tox/config/cli/parser.py
@@ -290,6 +290,8 @@ def add_color_flags(parser: ArgumentParser) -> None:
290
converter = StrConvert()
291
if converter.to_bool(os.environ.get("NO_COLOR", "")):
292
color = "no"
293
+ elif os.environ.get("TERM", "") == "dumb":
294
+ color = "no"
295
elif converter.to_bool(os.environ.get("FORCE_COLOR", "")):
296
color = "yes"
297
else:
@@ -299,7 +301,7 @@ def add_color_flags(parser: ArgumentParser) -> None:
299
301
"--colored",
300
302
default=color,
303
choices=["yes", "no"],
- help="should output be enriched with colors",
304
+ help="should output be enriched with colors, default is yes unless TERM=dumb or NO_COLOR is defined.",
305
)
306
307
0 commit comments