Thanks to visit codestin.com Credit goes to github.com
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 07797f3 commit 69b2cb5Copy full SHA for 69b2cb5
1 file changed
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 os.environ.get('NO_COLOR'):
+ if 'NO_COLOR' in os.environ and os.environ['NO_COLOR']:
52
return False
53
54
return (
0 commit comments