-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
Adds ability to configure stderr output color #3426
base: main
Are you sure you want to change the base?
Conversation
4e18a4f
to
235ac26
Compare
799495c
to
1db8f80
Compare
1db8f80
to
1316db1
Compare
cc8393f
to
94417db
Compare
@gaborbernat Can you have another look please? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build is failing so there's nothing to review yet that much
Pull request was converted to draft
d9cae0e
to
9152d39
Compare
9152d39
to
d4a789c
Compare
@@ -77,7 +87,7 @@ def test_local_execute_basic_pass( # noqa: PLR0913 | |||
out_got, err_got = out_err.read_out_err() | |||
if show: | |||
assert out_got == out | |||
expected = (f"{Fore.RED}{err}{Fore.RESET}" if color else err) if err else "" | |||
expected = f"{Fore.__dict__[stderr_color]}{err}{Fore.RESET}" if color and err else err |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getattr
This feature will allow users to control the coloring of stderr with tox, including ability to avoiding adding colors to it, while still using colors as many tools are already producing colored output.
Please, make sure you address all the checklists (for details on how see
development documentation)! -->
tox -e fix
)docs/changelog
folder