Skip to content

Commit c75d893

Browse files
committed
Revert "Don't use color if NO_COLOR environment variable is set"
This reverts commit 1bf9ff7.
1 parent df919e6 commit c75d893

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pre_commit/color.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ def use_color(setting):
4848
if setting not in COLOR_CHOICES:
4949
raise InvalidColorSetting(setting)
5050

51-
if 'NO_COLOR' in os.environ:
52-
return False
53-
5451
return (
5552
setting == 'always' or
5653
(setting == 'auto' and sys.stdout.isatty() and terminal_supports_color)

0 commit comments

Comments
 (0)