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: Fix if-else-block-instead-of-if-exp (SIM108) (part 1) #4561

Merged

Conversation

echoix
Copy link
Member

@echoix echoix commented Oct 20, 2024

Ruff rule: https://docs.astral.sh/ruff/rules/if-else-block-instead-of-if-exp

Since the amount of changes for SIM108 are quite large, (more than 330), I've decided to split the fixes in more than 1 PR. I kept scripts/*, python/* and gui/* in other PRs.

To avoid conflicts, I didn't commit the modified pyproject.toml, nor extra typing annotations that I used to help guiding and validating these fixes.

@echoix echoix requested a review from ninsbl October 20, 2024 19:46
@github-actions github-actions bot added temporal Related to temporal data processing Python Related code is in Python libraries module docs labels Oct 20, 2024
@ninsbl ninsbl changed the title style: Fix Fix if-else-block-instead-of-if-exp (SIM108) (part 1) style: Fix if-else-block-instead-of-if-exp (SIM108) (part 1) Oct 20, 2024
@echoix echoix enabled auto-merge (squash) October 20, 2024 20:04
@echoix echoix merged commit 870343f into OSGeo:main Oct 20, 2024
28 checks passed
@echoix echoix deleted the fix-SIM108-if-else-block-instead-of-if-exp-part1 branch October 20, 2024 21:06
@github-actions github-actions bot added this to the 8.5.0 milestone Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs libraries module Python Related code is in Python temporal Related to temporal data processing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants