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 PLW1509 - and adds fixes as needed.

Fun stuff that we had especially in standard provider really a long time deprecated fucntion. I was able to trace the usage back to the year 2017 in ca96104 where it was initially added which was closing https://issues.apache.org/jira/browse/AIRFLOW-1745 (for somebody still having access to this...).

So for the change in standard provider - as far as I see the docs all supported python versions allow a replacement but I'd like really a "gray hair person" expertise review by e.g. @ashb @kaxil @potiuk @dstandish (including these who still have hair...) if the replacement code is really good enough.

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

@jscheffl jscheffl requested review from ashb, kaxil and potiuk October 31, 2025 22:10
@jscheffl jscheffl force-pushed the feature/add-ruff-plw1509-rule branch 2 times, most recently from 6e9db94 to e8588ad Compare November 1, 2025 12:31
@jscheffl jscheffl requested a review from dstandish November 1, 2025 12:55
@jscheffl jscheffl force-pushed the feature/add-ruff-plw1509-rule branch 2 times, most recently from 9224ca3 to d72c723 Compare November 4, 2025 22:24
@jscheffl jscheffl force-pushed the feature/add-ruff-plw1509-rule branch from d72c723 to 8b2504c Compare November 6, 2025 18:39
@jscheffl jscheffl merged commit 34adc27 into apache:main Nov 6, 2025
212 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants