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
isort currently collapses spaces separating inline comments from import statements into one space.
When I write this:
importa# useful library
isort removes one of the spaces:
diff [...]
-import a # useful library
+import a # useful library
According to pep8, [i]nline comments should be separated by at least two spaces from the statement.
I think, isort should keep double spaces if they exist, to keep code adhering to pep8 valid. Perhaps isort should also introduce double spaces, if there is only one, to make the resulting code adhere to pep8.
The text was updated successfully, but these errors were encountered:
Fixed in just released hotfix release version 3.6.1 - thanks for pointing this out! I've made it always follow the pep8 two space specification - as it should.
isort currently collapses spaces separating inline comments from import statements into one space.
When I write this:
isort removes one of the spaces:
According to pep8, [i]nline comments should be separated by at least two spaces from the statement.
I think, isort should keep double spaces if they exist, to keep code adhering to pep8 valid. Perhaps isort should also introduce double spaces, if there is only one, to make the resulting code adhere to pep8.
The text was updated successfully, but these errors were encountered: