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__ importunicode_literalsfromosimportpath# A comment for a constantANSWER=42
results in
ERROR: /tmp/test/test.py Imports are incorrectly sorted and/or formatted.
--- /tmp/test/test.py:before 2020-07-08 13:28:31.901108
+++ /tmp/test/test.py:after 2020-07-08 13:32:21.272221
@@ -1,6 +1,6 @@
+# A comment for a constant
from __future__ import unicode_literals
from os import path
-# A comment for a constant
ANSWER = 42
Affected version: 5.0.5
The text was updated successfully, but these errors were encountered:
When using
add_imports
, isort moves comments following the import section to its beginning.For example a command
applied to a file
results in
Affected version: 5.0.5
The text was updated successfully, but these errors were encountered: