-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
disallow "private" imports #14890
disallow "private" imports #14890
Conversation
lint.extend-select = ["I"] | ||
lint.preview = true | ||
lint.extend-select = ["I", "PLC2701"] | ||
lint.explicit-preview-rules = true |
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.
"only use preview rules we explicitly include in extend-select
"
|
||
# Do not enforce line length; black does this for code and we do not care about comments / docs | ||
lint.ignore = ["E501"] | ||
|
||
[lint.per-file-ignores] | ||
# Do not enforce usage and import order rules in init files | ||
"__init__.py" = ["E402", "F401", "I"] | ||
"__init__.py" = ["E402", "F401", "I", "PLC2701"] | ||
"**/{tests,docs}/*" = ["F841", "PLC2701"] |
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.
"don't worry about private imports in tests" e.g. from prefect._internal
CodSpeed Performance ReportMerging #14890 will not alter performanceComparing Summary
|
d2106b4
to
1819641
Compare
This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment. |
This pull request was closed because it has been stale for 14 days with no activity. If this pull request is important or you have more to add feel free to re-open it. |
use a preview
ruff
rule (PLC2701
) to disallow "private" imports, since we should try to keep the use of some thing_foo
to the place in which its definedand make ruff happy in some assorted cases found by running
pre-commit run --all-files
also updates
ruff
in thepre-commit
config