-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Support FORCE_COLOR
env var
#341
Comments
Worth noting, the main reason behind this is to have colored output when run in places like GitHub Actions. I did experiment with using I believe there may be something wrong with the way it redraws a line when it needs to update it. |
how does |
Of course, sorry. It seems that Pytest
ToxRichMypybuild |
I agree. NO_COLOR forces to disable the color, but there are instances where there is no tty but we know colors are supported (github actions, or gitlab CI). Supporting a way to "allow color despit no tty" use case is a must. Conan uses "NO_COLOR" and CONAN_FORCE_COLOR, with a precedence of NO_COLOR over CONAN_FORCE_COLOR. I vote for POETRY_FORCE_COLOR to allow enabling colors only in poetry if need be |
I'd say to support |
That looks like verbose mode when |
I suppose this could do the trick. I still think |
Do you happen to know if this has been fixed? |
Agreed. I have no idea where the hell My bet is it can be removed (unless someone can tell me if it is an environment variable used for a particular terminal). Regardless, how to use environment variables needs to be documented! |
I don’t know specifically about things being printed verbosely (as it appears in this case), but we did see duplicate printing of messages in |
Feature Request
Add support for the
FORCE_COLOR
environment variable. When set, regardless of value, all output should have colors enabled, as if the terminal supported them.Some projects that use this:
Related:
FORCE_COLOR
env var astral-sh/ruff#5499FORCE_COLOR
env var pre-commit/pre-commit#2918The text was updated successfully, but these errors were encountered: