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
from __future__ importprint# futurefromdjangoimportdb# third-partyfrom . importy# local-folder
and isort config no-lines-before = ["local-folder"].
Expected behavior is:
from __future__ importprint# futurefromdjangoimportdb# third-partyfrom . importy# local-folder
Even though we specified no lines before local-folder, there should still be a line before in this case, because the first-party section which comes between local-folder and third-partyisn't included in no-lines-before. This is what isort does.
Actual behavior:
from __future__ importprint# futurefromdjangoimportdb# third-partyfrom . importy# local-folder
The text was updated successfully, but these errors were encountered:
bluetech
added a commit
to bluetech/ruff
that referenced
this issue
Feb 22, 2023
Version: 0.0.251
Consider imports such as
and isort config
no-lines-before = ["local-folder"]
.Expected behavior is:
Even though we specified no lines before
local-folder
, there should still be a line before in this case, because thefirst-party
section which comes betweenlocal-folder
andthird-party
isn't included inno-lines-before
. This is whatisort
does.Actual behavior:
The text was updated successfully, but these errors were encountered: