-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move new delete fixture into ruff fixtures
- Loading branch information
Showing
4 changed files
with
67 additions
and
162 deletions.
There are no files selected for viewing
29 changes: 0 additions & 29 deletions
29
crates/ruff_python_formatter/resources/test/fixtures/black/simple_cases/delete.py.expect
This file was deleted.
Oops, something went wrong.
File renamed without changes.
133 changes: 0 additions & 133 deletions
133
...f_python_formatter/src/snapshots/ruff_python_formatter__tests__black_test__delete_py.snap
This file was deleted.
Oops, something went wrong.
67 changes: 67 additions & 0 deletions
67
...ormatter/src/snapshots/ruff_python_formatter__tests__ruff_test__statement__delete_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,67 @@ | ||
--- | ||
source: crates/ruff_python_formatter/src/lib.rs | ||
expression: snapshot | ||
--- | ||
## Input | ||
```py | ||
x = 1 | ||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = 1 | ||
b, c, d = (2, 3, 4) | ||
# Some comment | ||
del x # Trailing comment | ||
# Dangling comment | ||
# Some comment | ||
del x, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, b, c, d # Trailing comment | ||
# Dangling comment | ||
# Some comment | ||
del ( | ||
x, | ||
# Slapping one here | ||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, | ||
b, | ||
c, | ||
d | ||
# Another one | ||
) # Trailing comment | ||
# Dangling comment | ||
``` | ||
|
||
|
||
|
||
## Output | ||
```py | ||
x = 1 | ||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa = 1 | ||
b, c, d = (2, 3, 4) | ||
# Some comment | ||
del x # Trailing comment | ||
# Dangling comment | ||
# Some comment | ||
del ( | ||
x, | ||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, | ||
b, | ||
c, | ||
d, | ||
) # Trailing comment | ||
# Dangling comment | ||
# Some comment | ||
del ( | ||
x, | ||
# Slapping one here | ||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, | ||
b, | ||
c, | ||
d | ||
# Another one | ||
) # Trailing comment | ||
# Dangling comment | ||
``` | ||
|
||
|