Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Associate inline comments with parenthesized
ImportFrom
statements (#…
- Loading branch information
1 parent
731f3a7
commit 77692e4
Showing
4 changed files
with
51 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from a.prometheus.metrics import ( # type:ignore[attr-defined] | ||
TERMINAL_CURRENTLY_RUNNING_TOTAL, | ||
) | ||
|
||
from b.prometheus.metrics import ( | ||
TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined] | ||
) | ||
|
||
from c.prometheus.metrics import TERMINAL_CURRENTLY_RUNNING_TOTAL # type:ignore[attr-defined] | ||
|
||
from d.prometheus.metrics import TERMINAL_CURRENTLY_RUNNING_TOTAL, OTHER_RUNNING_TOTAL # type:ignore[attr-defined] |
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
21 changes: 21 additions & 0 deletions
21
src/isort/snapshots/ruff__isort__tests__inline_comments.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,21 @@ | ||
--- | ||
source: src/isort/mod.rs | ||
expression: checks | ||
--- | ||
- kind: UnsortedImports | ||
location: | ||
row: 1 | ||
column: 0 | ||
end_location: | ||
row: 12 | ||
column: 0 | ||
fix: | ||
content: "from a.prometheus.metrics import ( # type:ignore[attr-defined]\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\nfrom b.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom c.prometheus.metrics import (\n TERMINAL_CURRENTLY_RUNNING_TOTAL, # type:ignore[attr-defined]\n)\nfrom d.prometheus.metrics import ( # type:ignore[attr-defined]\n OTHER_RUNNING_TOTAL,\n TERMINAL_CURRENTLY_RUNNING_TOTAL,\n)\n" | ||
location: | ||
row: 1 | ||
column: 0 | ||
end_location: | ||
row: 12 | ||
column: 0 | ||
parent: ~ | ||
|