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
@@ -296,7 +296,7 @@ Sort imports by their string length.
296
296
297
297
## Length Sort Straight
298
298
299
-
Sort straight imports by their string length.
299
+
Sort straight imports by their string length. Similar to `length_sort` but applies only to straight imports and doesn't affect from imports.
300
300
301
301
**Type:** Bool
302
302
**Default:**`False`
@@ -602,7 +602,7 @@ Force all imports to be sorted as a single section
602
602
603
603
## Force Grid Wrap
604
604
605
-
Force number of from imports (defaults to 2 when passed as CLI flag without value)to be grid wrapped regardless of line length. If 0 is passed in (the global default) only line length is considered.
605
+
Force number of from imports (defaults to 2 when passed as CLI flag without value)to be grid wrapped regardless of line length. If 0 is passed in (the global default) only line length is considered.
Tells isort to ignore whitespace differences when --check-only is being used.
@@ -767,8 +776,8 @@ Tells isort to honor noqa comments to enforce skipping those comments.
767
776
768
777
Add an explicitly defined source path (modules within src paths have their imports automatically categorized as first_party).
769
778
770
-
**Type:**Frozenset
771
-
**Default:**`frozenset()`
779
+
**Type:**Tuple
780
+
**Default:**`()`
772
781
**Python & Config File Name:** src_paths
773
782
**CLI Flags:**
774
783
@@ -800,7 +809,8 @@ Tells isort to remove redundant aliases from imports, such as `import os as os`.
800
809
801
810
## Float To Top
802
811
803
-
Causes all non-indented imports to float to the top of the file having its imports sorted. It can be an excellent shortcut for collecting imports every once in a while when you place them in the middle of a file to avoid context switching.
812
+
Causes all non-indented imports to float to the top of the file having its imports sorted (immediately below the top of file comment).
813
+
This can be an excellent shortcut for collecting imports every once in a while when you place them in the middle of a file to avoid context switching.
804
814
805
815
*NOTE*: It currently doesn't work with cimports and introduces some extra over-head and a performance penalty.
806
816
@@ -880,7 +890,7 @@ Tells isort to treat all single line comments as if they are code.
880
890
Specifies what extensions isort can be ran against.
0 commit comments