-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
remove all click.style calls from exceptions.py #6219
base: main
Are you sure you want to change the base?
remove all click.style calls from exceptions.py #6219
Conversation
fc75141
to
e8a932f
Compare
@@ -137,14 +137,14 @@ def show(self, file=None): | |||
|
|||
|
|||
class PipenvFileError(FileError): | |||
formatted_message = "{} {{}} {{}}".format(click.style("ERROR:", fg="red", bold=True)) | |||
formatted_message = "{} {{}} {{}}".format("[bold red]ERROR:[/bold red]") |
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.
I am not sure -- does this work or does it have to be [bold][red]
?
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.
yes it works like that, it can be either
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.
Ah ok thanks --sorry I accidentally marked this as ready for review -- feel free to change back.
The issue
Click library is large and redundant.
The fix
replace click.style calls in:
pipenv/exceptions.py
@oz123