-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Document link between import-outside-top-level (PLC0415) and lint.flake8-tidy-imports.banned-module-level-imports
#18733
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
…8-tidy-imports_banned-module-level-imports
34f0033 to
d194c49
Compare
crates/ruff_linter/src/rules/pylint/rules/import_outside_top_level.rs
Outdated
Show resolved
Hide resolved
import-outside-top-level (PLC0415) and lint.flake8-tidy-imports.banned-module-level-imports
|
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.
Thank you! This looks great. We might just need to clarify that TID253 has to be enabled. Good idea to check that!
crates/ruff_linter/src/rules/pylint/rules/import_outside_top_level.rs
Outdated
Show resolved
Hide resolved
|
Thanks for the review! I'm away for the weekend, I'll complete this next week. (It's not urgent anyway) |
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.
Looks great, thank you!
Summary
As mentioned in #18728 (comment) CC @ntBre
Test Plan
Run the docs locally as per https://github.com/astral-sh/ruff/blob/a2cd6df429a3e76880a48a5eb8816a86c36927ed/CONTRIBUTING.md#mkdocs