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
If you have a decorator on the first class or function after imports that has a semicolon in the line (eg, in a string) it confuses the lines_after_imports setting into only putting a single blank line, when there should in fact be two. Here's a minimal repro:
Removing the semicolon in the @pytest.mark.skip(';') line (eg having it be an empty string) causes it to put two blank lines after imports (as expected here).
This bug causes isort to conflict with black (though a workaround is to just put a pass between the imports and the class or function).
This was tested on latest master at time of writing (1621e19).
The text was updated successfully, but these errors were encountered:
If you have a decorator on the first class or function after imports that has a semicolon in the line (eg, in a string) it confuses the
lines_after_imports
setting into only putting a single blank line, when there should in fact be two. Here's a minimal repro:Removing the semicolon in the
@pytest.mark.skip(';')
line (eg having it be an empty string) causes it to put two blank lines after imports (as expected here).This bug causes
isort
to conflict withblack
(though a workaround is to just put apass
between the imports and the class or function).This was tested on latest master at time of writing (1621e19).
The text was updated successfully, but these errors were encountered: