-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the NO_COLOR
environment variable
#355
Comments
Good job. I can only agree with the suggestion. So you want to keep #353 to only support the |
Yes @MatthijsBurgh I think I'd like to have these in separate issues. The other question then is whether to
|
I think option 2/3 is the best one. I think both should be included in the same release. And I think the version should be a minor version bump. So it will be 1.5.0 or 1.6.0 depending on whether you want to wait for this feature or release a version without it for now. |
pypa/pip#10909 is so far the "highest profile" discussion I've found on this topic.
It seems that pip and colorama are going to support only
FORCE_COLOR=<anything>
andNO_COLOR=<anything>
, but notPY_COLORS
.On the other hand, Pytest does support
PY_COLORS={1|0}
andNO_COLOR=<anything>
(withPY_COLORS
taking precedence).So in the end it may be best to do the same as Pytest:
PY_COLORS={1|0}
(taking precedence over other options)NO_COLOR=<anything>
FORCE_COLOR=<anything>
(similar to pip and colorama)As for the
true
/false
discussion, I'm going to make the call to only supportPY_COLORS={0|1}
for now. Thanks @MatthijsBurgh for initiating the discussion and motivating me to look further into the topic!Originally posted by @akaihola in #353 (comment)
The text was updated successfully, but these errors were encountered: