-
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
Honor banned top level imports by TID253 in PLC0415. #15628
base: main
Are you sure you want to change the base?
Honor banned top level imports by TID253 in PLC0415. #15628
Conversation
|
code | total | + violation | - violation | + fix | - fix |
---|---|---|---|---|---|
PLC0415 | 66 | 0 | 66 | 0 | 0 |
The ecosystem changes look off. Would you mind taking a look? E.g. I don't think |
yes, sure, I will. I wanted to run these checks locally yesterday, but it was getting late, so I haven’t had time to figure that out. First time making smth. with a lint. Thanks for the heads up |
extend test cases to cover all variations
@MichaReiser I believe this is now all fixed. Spot checked half of Airflow changes, all numpy/pandas that are indeed banned by TID253 here and checked one case in bokeh, PIL is also banned here Let me know if this looks good! |
Summary
Fixes #12803
I didn't dare to extract the shared module matching logic from tidy-imports into some helper module, so there is some questionable cross-use between lints.
Test Plan
Added new snapshot test