---
source: crates/ruff_linter/src/rules/isort/mod.rs
---
I001 [*] Import block is un-sorted or un-formatted
  --> as_imports_comments.py:1:1
   |
 1 | / from foo import (  # Comment on `foo`
 2 | |     Member as Alias,  # Comment on `Alias`
 3 | | )
 4 | |
 5 | | from bar import (  # Comment on `bar`
 6 | |     Member,  # Comment on `Member`
 7 | | )
 8 | |
 9 | | from baz import (  # Comment on `baz`
10 | |     Member as Alias  # Comment on `Alias`
11 | | )
12 | |
13 | | from bop import (  # Comment on `bop`
14 | |     Member  # Comment on `Member`
15 | | )
   | |_^
   |
help: Organize imports
  |
  - from foo import (  # Comment on `foo`
  -     Member as Alias,  # Comment on `Alias`
  - )
  -
1 | from bar import (  # Comment on `bar`
2 |     Member,  # Comment on `Member`
  - )
  -
  - from baz import (  # Comment on `baz`
  -     Member as Alias  # Comment on `Alias`
3 | )
  -
  - from bop import (  # Comment on `bop`
  -     Member  # Comment on `Member`
4 + from baz import Member as Alias  # Comment on `baz`  # Comment on `Alias`
5 + from bop import Member  # Comment on `bop`  # Comment on `Member`
6 + from foo import (  # Comment on `foo`
7 +     Member as Alias,  # Comment on `Alias`
8 | )
  |
