You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suboptimal autofix when combining PLC0415,I001,RUF100 with a long line #20042
Running ruff with (at least) these three rules enabled, currently PLC0415 triggers:
$ uvx ruff==0.12.10 check --select PLC0415,I001,RUF100 moo.pymoo.py:2:5: PLC0415 `import` should be at the top-level of a file
Because there are good reasons that the import is local, we disable (in practice, this disable is done in an editor via the ruff language server's suggested code action):
Activity
ntBre commentedon Aug 22, 2025
Thanks for the report and the neat reproduction! I think this might be a duplicate of #12179, where the root I001-RUF100 conflict is the same.
[`isort`] Exclude pragma comments from line length calculation (`I001…