There was an error while loading. Please reload this page.
1 parent df919e6 commit c75d893Copy full SHA for c75d893
1 file changed
pre_commit/color.py
@@ -48,9 +48,6 @@ 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