---
source: crates/ruff_linter/src/rules/isort/mod.rs
---
sort_similar_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted
   |
 1 | / from a import b
 2 | | from a import BAD as DEF
 3 | | from a import B
 4 | | from a import Boo as DEF
 5 | | from a import B as Abc
 6 | | from a import B as A
 7 | | from a import B as DEF
 8 | | from a import b as a
 9 | | from a import b as x
10 | | from a import b as c
11 | | from b import c
12 | | from a import b as d
13 | | from a import b as y
14 | | from b import C
15 | | from b import c as d
16 | |
17 | | import A
18 | | import a
19 | | import b
20 | | import B
21 | |
22 | | import x as y
23 | | import x as A
24 | | import x as Y
25 | | import x
26 | | import x as a
   | |_____________^ I001
   |
   = help: Organize imports

ℹ Safe fix
1     |-from a import b
   1  |+import A
   2  |+import a
   3  |+import B
   4  |+import b
   5  |+import x
   6  |+import x as A
   7  |+import x as Y
   8  |+import x as a
   9  |+import x as y
2  10 | from a import BAD as DEF
3     |-from a import B
4     |-from a import Boo as DEF
   11 |+from a import B, b
   12 |+from a import B as A
5  13 | from a import B as Abc
6     |-from a import B as A
7  14 | from a import B as DEF
   15 |+from a import Boo as DEF
8  16 | from a import b as a
9     |-from a import b as x
10 17 | from a import b as c
11    |-from b import c
12 18 | from a import b as d
   19 |+from a import b as x
13 20 | from a import b as y
14    |-from b import C
   21 |+from b import C, c
15 22 | from b import c as d
16    |-
17    |-import A
18    |-import a
19    |-import b
20    |-import B
21    |-
22    |-import x as y
23    |-import x as A
24    |-import x as Y
25    |-import x
26    |-import x as a
