mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
parent
07797f3fff
commit
69b2cb5ea6
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ def use_color(setting):
|
||||||
if setting not in COLOR_CHOICES:
|
if setting not in COLOR_CHOICES:
|
||||||
raise InvalidColorSetting(setting)
|
raise InvalidColorSetting(setting)
|
||||||
|
|
||||||
if os.environ.get('NO_COLOR'):
|
if 'NO_COLOR' in os.environ and os.environ['NO_COLOR']:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue