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

style: Call startswith or endswith once with a tuple (PIE810) #4348

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

echoix
Copy link
Member

@echoix echoix commented Sep 19, 2024

Ruff rule: https://docs.astral.sh/ruff/rules/multiple-starts-ends-with/

Python docs: https://docs.python.org/3/library/stdtypes.html#str.startswith (no "introduced in" about the tuple of values to check against)

@echoix echoix added this to the 8.5.0 milestone Sep 19, 2024
@github-actions github-actions bot added GUI wxGUI related Python Related code is in Python libraries docs labels Sep 19, 2024
@echoix echoix merged commit 75458f8 into OSGeo:main Sep 19, 2024
27 of 28 checks passed
@echoix echoix deleted the fix-PIE810 branch September 19, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs GUI wxGUI related libraries Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants