Skip to content

Add and fix SIM107 and B012 Ruff rule - #59770

Merged
potiuk merged 2 commits into
apache:mainfrom
jscheffl:bugfix/lint-jumps-in-finally
Dec 26, 2025
Merged

potiuk merged 2 commits into
apache:mainfrom
jscheffl:bugfix/lint-jumps-in-finally

Conversation

@jscheffl

Copy link
Copy Markdown
Contributor

As of comments from @johnslavik (Thanks!) in #58488 detected a bad use of return in finally which should be prevented and PR #59019 did not make it on main this PR is a follow-up to prevent a regression on such problems.

Alongside two occurrences in Celery and CNCF.K8s provider are fixed, I assume for the good.

@jscheffl
jscheffl force-pushed the bugfix/lint-jumps-in-finally branch from ef13ccc to 6b53096 Compare December 24, 2025 09:26
@jscheffl
jscheffl requested a review from johnslavik December 24, 2025 09:26
@potiuk
potiuk merged commit 77a2f1c into apache:main Dec 26, 2025
jhgoebbert pushed a commit to jhgoebbert/airflow_Owen-CH-Leung that referenced this pull request Feb 8, 2026
* Add and fix SIM107 and B012 Ruff rule

* Review by @johnslavik
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.

3 participants