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

Call startswith/endswith once with a tuple, and range without start=0 #8799

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Mar 4, 2025

Some small cleanups found with https://docs.astral.sh/ruff/rules/#flake8-pie-pie.

@hugovk hugovk added the Cleanup label Mar 4, 2025
@@ -133,6 +134,7 @@ lint.ignore = [
"E221", # Multiple spaces before operator
"E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ','
"PIE790", # flake8-pie: unnecessary-placeholder
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the record, you're ignoring this because you dislike the rule? I mean, we could adjust to it. hugovk#130

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think it's clearer with an explicit pass.

@radarhere radarhere merged commit 7552893 into python-pillow:main Mar 5, 2025
68 of 69 checks passed
@hugovk hugovk deleted the flake8-pie branch March 5, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants