Repository navigation
Conversation
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
Avasam
force-pushed
the
Python-3.15-`__lazy_modules__`
branch
from
July 11, 2026 18:45
2cf37a2 to
356bcc8
Compare
__lazy_modules__ (auto-applied w/ flake8-lazy --apply=set)__lazy_modules__
Avasam
commented
Jul 11, 2026
|
|
||
| # Deprecated rules must now be selected by exact rule code | ||
| "ruff >= 0.13.0; sys_platform != 'cygwin'", | ||
| "flake8-lazy", # Until Ruff gains support for automatically inserting and validating __lazy_modules__ |
Contributor
Author
There was a problem hiding this comment.
For tracking:
- Support
__lazy_modules__in lazy import rules astral-sh/ruff#25170 - Support and lints for
lazyimports in Python 3.15+ astral-sh/ruff#21305 lazy-import-mismatch- use__lazy_modules__when targeting python <3.15 astral-sh/ruff#29175- Support
flake8-lazystyle relative import in__lazy_modules__astral-sh/ruff#28866
Avasam
commented
Jul 11, 2026
Avasam
force-pushed
the
Python-3.15-`__lazy_modules__`
branch
3 times, most recently
from
July 11, 2026 22:11
41b2d76 to
be82d65
Compare
Avasam
force-pushed
the
Python-3.15-`__lazy_modules__`
branch
from
August 3, 2026 22:53
be82d65 to
63ad5a9
Compare
Avasam
force-pushed
the
Python-3.15-`__lazy_modules__`
branch
3 times, most recently
from
September 10, 2026 19:16
594bc78 to
e7745f1
Compare
Avasam
force-pushed
the
Python-3.15-`__lazy_modules__`
branch
from
October 22, 2026 17:36
e93a2de to
0903ea1
Compare
Avasam
force-pushed
the
Python-3.15-`__lazy_modules__`
branch
from
October 22, 2026 17:44
0903ea1 to
c03bbe8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Alternative dynamic mode: https://flake8-lazy.readthedocs.io/en/latest/cli/#dynamic-mode
Once pypa/distutils#414 is also merged, this will
distutilsimport very slow #3585setuptoolsis slow and takes nearly half a second #3441Autofixed by running
Note: Merging #5222 first should reduce import reification related errors found by test.
Pull Request Checklist
newsfragments/.(See documentation for details)