-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[airflow] fix ImportPathMoved / ProviderName misuse (AIR303) #16013
base: main
Are you sure you want to change the base?
Conversation
I'm thinking of splitting related test cases into separate files in the following PRs. Otherwise, it's a bit difficult to check the test cases. |
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
AIR303 | 5 | 5 | 0 | 0 | 0 |
AIR302 | 5 | 0 | 5 | 0 | 0 |
I think that'd be useful. We usually prefer self-contained PRs as it's much easier to review. As per the PR description, it seems like this might be doing multiple things (Fix |
I love this idea! I was worried about creating too many small PRs. Thanks for letting me know! |
df6c21e
to
be0b104
Compare
I just splited this into 3 pull requests (including this one). 🙌 I may need to rebase a bit after one is merged, but I should be fine. |
Summary
["airflow", "config_templates", "default_celery", "DEFAULT_CELERY_CONFIG"]
, should useProviderName
. In contrast, module paths like"airflow", "operators", "weekday", ...
should useImportPathMoved
. Misuse may lead to incorrect detection.Test Plan
update test fixture