-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always place non-relative imports after relative imports
- Loading branch information
1 parent
7c2e9f7
commit b1956a9
Showing
6 changed files
with
86 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...er__rules__isort__tests__known_local_folder_closest_separate_local_folder_imports.py.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/isort/mod.rs | ||
--- | ||
separate_local_folder_imports.py:1:1: I001 [*] Import block is un-sorted or un-formatted | ||
| | ||
1 | / import sys | ||
2 | | import ruff | ||
3 | | import leading_prefix | ||
4 | | import os | ||
5 | | from . import leading_prefix | ||
6 | | from .. import trailing_prefix | ||
7 | | from ruff import check | ||
| | ||
= help: Organize imports | ||
|
||
ℹ Safe fix | ||
1 |+import os | ||
1 2 | import sys | ||
3 |+ | ||
4 |+import leading_prefix | ||
5 |+ | ||
2 6 | import ruff | ||
3 |-import leading_prefix | ||
4 |-import os | ||
5 7 | from . import leading_prefix | ||
6 8 | from .. import trailing_prefix | ||
7 9 | from ruff import check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters