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 8520455 commit e9ff1beCopy full SHA for e9ff1be
pre_commit/color.py
@@ -48,7 +48,7 @@ def use_color(setting):
48
if setting not in COLOR_CHOICES:
49
raise InvalidColorSetting(setting)
50
51
- if 'NO_COLOR' in os.environ and os.environ['NO_COLOR']:
+ if os.environ.get('NO_COLOR'):
52
return False
53
54
return (
0 commit comments