-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Take the FORCE_COLOR
and NO_COLOR
environment variables into account
#9128
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Stavros Ntentos <[email protected]>
Use the `_is_env_set_and_non_empty`, and the logic decided in the issue, to modify the reporter(s) list accordingly. At most, one reporter should be modified - the one going to `stdout`. Hooking before the `self.set_reporter` was deemed as the smallest incision. For no particular reason, it was decided that `_handle_force_color_no_color` would modify its input; so there would be no need for re-assigning the input we want to modify anyway. Signed-off-by: Stavros Ntentos <[email protected]>
Signed-off-by: Stavros Ntentos <[email protected]>
Signed-off-by: Stavros Ntentos <[email protected]>
This comment has been minimized.
This comment has been minimized.
Any ideas of how to detect that a reporter is attached to |
FORCE_COLOR
and NO_COLOR
environnement variables into accountFORCE_COLOR
and NO_COLOR
environement variables into account
FORCE_COLOR
and NO_COLOR
environement variables into accountFORCE_COLOR
and NO_COLOR
environment variables into account
This comment has been minimized.
This comment has been minimized.
÷1 to I suggest to leave https://docs.pytest.org/en/stable/reference/reference.html#envvar-PY_COLORS |
🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉 This comment was generated for commit 51950fe |
Support for
NO_COLOR
andFORCE_COLOR
(andPY_COLORS
, as an alias toFORCE_COLOR
)environment variables has been added. When running
pylint
, the reporter that reportsto
stdout
will be modified according to the requested mode.The order is:
NO_COLOR
FORCE_COLOR
,PY_COLORS
--output=...
.Signed-off-by: Stavros Ntentos [email protected]
skip-news
if the change does not need to be in the changelog.towncrier create <IssueNumber>.<type>
which will beincluded in the changelog.
<type>
can be one of the types defined in./towncrier.toml
.If necessary you can write details or offer examples on how the new change is supposed to work.
tox -e docs
Don't hesitate to open multiple PRs if the change requires it. If your review is so
big it requires to actually plan and allocate time to review, it's more likely
that it's going to go stale.
and preferred name in
script/.contributors_aliases.json
Type of Changes
Description
Fixes #3995