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
The lines-after-imports setting is a isort setting and isort runs as part of ruff check and not ruff format.
Can you try to run
ruff check --fix --select I
It should add the two empty lines. We hope to integrate format into ruff check in the long-term and possibly move isort to format to reduce the confusion (see #8232)
I'm using
ruff 0.6.5 (8558126df 2024-09-13)
with configtool.ruff.lint.isort.lines-after-imports = 2
ruff format warns about
lines-after-imports
are not -1,1,2 but did't add 2 empty lines after last importfor example, not changes for this file:
The text was updated successfully, but these errors were encountered: