Skip to content

Conversation

@jscheffl
Copy link
Contributor

While implementing #57294 I realized that a couple of more ruff PLW rules might be interesting, this PR enables PLW0211

Alongside saw that PLW0245 and PLW0406 needed no fixes and enabled them as well

See also https://docs.astral.sh/ruff/rules/#warning-plw

@jscheffl jscheffl force-pushed the feature/add-ruff-plw0602-rule branch from 768cc85 to 68f9b50 Compare October 31, 2025 06:04
@jscheffl jscheffl merged commit d52c4fb into apache:main Oct 31, 2025
208 checks passed
@github-actions
Copy link

Backport failed to create: v3-1-test. View the failure log Run details

Status Branch Result
v3-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker d52c4fb v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

jscheffl added a commit to jscheffl/airflow that referenced this pull request Oct 31, 2025
jscheffl added a commit to jscheffl/airflow that referenced this pull request Oct 31, 2025
(cherry picked from commit d52c4fb)

Co-authored-by: Jens Scheffler <[email protected]>
jscheffl added a commit that referenced this pull request Oct 31, 2025
* Enable ruff PLW0602 rule (#57588)

(cherry picked from commit d52c4fb)

* Enable ruff PLW0129 rule (#57516)

* Enable ruff PLW0129 rule

* Fix pytests

* Fix pytests as working in logs changed

* Fix pytests as working in logs changed

* [v3-1-test] Enable ruff PLW0602 rule (#57588)
(cherry picked from commit d52c4fb)

Co-authored-by: Jens Scheffler <[email protected]>
ephraimbuddy pushed a commit that referenced this pull request Nov 3, 2025
* Enable ruff PLW0602 rule (#57588)

(cherry picked from commit d52c4fb)

* Enable ruff PLW0129 rule (#57516)

* Enable ruff PLW0129 rule

* Fix pytests

* Fix pytests as working in logs changed

* Fix pytests as working in logs changed

* [v3-1-test] Enable ruff PLW0602 rule (#57588)
(cherry picked from commit d52c4fb)

Co-authored-by: Jens Scheffler <[email protected]>
ephraimbuddy pushed a commit that referenced this pull request Nov 4, 2025
* Enable ruff PLW0602 rule (#57588)

(cherry picked from commit d52c4fb)

* Enable ruff PLW0129 rule (#57516)

* Enable ruff PLW0129 rule

* Fix pytests

* Fix pytests as working in logs changed

* Fix pytests as working in logs changed

* [v3-1-test] Enable ruff PLW0602 rule (#57588)
(cherry picked from commit d52c4fb)

Co-authored-by: Jens Scheffler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:dev-tools area:plugins area:providers backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch provider:standard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants