File tree Expand file tree Collapse file tree 2 files changed +41
-0
lines changed
crates/ruff_python_formatter/resources/test/fixtures/black/cases Expand file tree Collapse file tree 2 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ # ensure trailing comments are preserved
2+ import x # comment
3+ from x import a # comment
4+ from x import a , b # comment
5+ from x import a as b # comment
6+ from x import a as b , b as c # comment
7+
8+ # ensure intermixed end- and own-line comments are all preserved
9+ # and at least kept in their original order, if not their original
10+ # positions within the import statement
11+ from x import ( # alpha
12+ # bravo
13+ a # charlie
14+ # delta
15+ as # echo
16+ # foxtrot
17+ b # golf
18+ # hotel
19+ , # india
20+ # juliet
21+ ) # kilo
Original file line number Diff line number Diff line change 1+ # ensure trailing comments are preserved
2+ import x # comment
3+ from x import a # comment
4+ from x import a, b # comment
5+ from x import a as b # comment
6+ from x import a as b, b as c # comment
7+
8+ # ensure intermixed end- and own-line comments are all preserved
9+ # and at least kept in their original order, if not their original
10+ # positions within the import statement
11+ from x import ( # alpha
12+ # bravo
13+ a as b, # charlie
14+ # delta
15+ # echo
16+ # foxtrot # golf
17+ # hotel
18+ # india
19+ # juliet
20+ ) # kilo
You can’t perform that action at this time.
0 commit comments