Skip to content

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

Merged
radarhere merged 3 commits into
python-pillow:mainfrom
hugovk:flake8-pie
Mar 5, 2025
Merged

Call startswith/endswith once with a tuple, and range without start=0#8799
radarhere merged 3 commits into
python-pillow:mainfrom
hugovk:flake8-pie

Conversation

@hugovk

@hugovk hugovk commented Mar 4, 2025

Copy link
Copy Markdown
Member

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

@hugovk hugovk added the Cleanup label Mar 4, 2025
Comment thread pyproject.toml
"E221", # Multiple spaces before operator
"E226", # Missing whitespace around arithmetic operator
"E241", # Multiple spaces after ','
"PIE790", # flake8-pie: unnecessary-placeholder

Copy link
Copy Markdown
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
Copy Markdown
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
@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