-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[airflow] Refactor AIR301 logic and fix typos (AIR301)
#17293
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
Conversation
|
| code | total | + violation | - violation | + fix | - fix |
|---|---|---|---|---|---|
| AIR301 | 19 | 0 | 19 | 0 | 0 |
|
The TODOs are intentionally kept. They're things I think might be outdated but I'll need to confirm with the airflow community. Also, I would like to keep this PR simple |
ntBre
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A couple of questions, but this looks good otherwise.
|
Is this ready to merge? |
Yep, this is ready 🙂 |
airflow] Refactor AIR301 logic and fix typos (AIR301)
* main: [red-knot] Allow explicit specialization of generic classes (#17023) [`airflow`] Refactor `AIR301` logic and fix typos (`AIR301`) (#17293) [`airflow`] Extract `AIR312` from `AIR302` rules (`AIR302`, `AIR312`) (#17152) [red-knot] Improve handling of visibility constraints in external modules when resolving `*` imports (#17286) [red-knot] Add more tests for `*` imports (#17315)
…sh#17293) <!-- Thank you for contributing to Ruff! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? - Does this pull request include references to any relevant issues? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> * Simplify match conditions in AIR301 * Fix * `airflow.datasets.manager.DatasetManager` → `airflow.assets.manager.AssetManager` * `airflow.www.auth.has_access_dataset` → `airflow.www.auth.has_access_dataset` ## Test Plan <!-- How was it tested? --> The test fixture has been updated accordingly
Summary
airflow.datasets.manager.DatasetManager→airflow.assets.manager.AssetManagerairflow.www.auth.has_access_dataset→airflow.www.auth.has_access_datasetTest Plan
The test fixture has been updated accordingly