Skip to content
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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

aidencullo
Copy link
Contributor

The issue

Click library is large and redundant.

The fix

replace click.style calls in:

pipenv/exceptions.py

@oz123

@aidencullo aidencullo force-pushed the remove-click-style-from-exceptions branch from fc75141 to e8a932f Compare August 9, 2024 23:04
@@ -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]")
Copy link
Member

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]?

Copy link
Contributor Author

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

Copy link
Member

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.

@matteius matteius marked this pull request as ready for review October 22, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants