We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bd9bfe commit 1bf9ff7Copy full SHA for 1bf9ff7
pre_commit/color.py
@@ -48,6 +48,9 @@ def use_color(setting):
48
if setting not in COLOR_CHOICES:
49
raise InvalidColorSetting(setting)
50
51
+ if 'NO_COLOR' in os.environ:
52
+ return False
53
+
54
return (
55
setting == 'always' or
56
(setting == 'auto' and sys.stdout.isatty() and terminal_supports_color)
0 commit comments