mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 21:10:27 -06:00
Revert "Require NO_COLOR environment variable to be non-empty to disable colors"
This reverts commit 01d3a72a0e.
This commit is contained in:
@@ -48,7 +48,7 @@ def use_color(setting):
|
||||
if setting not in COLOR_CHOICES:
|
||||
raise InvalidColorSetting(setting)
|
||||
|
||||
if 'NO_COLOR' in os.environ and os.environ['NO_COLOR']:
|
||||
if 'NO_COLOR' in os.environ:
|
||||
return False
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user