-
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.
- Loading branch information
Showing
14 changed files
with
442 additions
and
370 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/assert.py
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,30 @@ | ||
assert True # Trailing same-line | ||
assert True is True # Trailing same-line | ||
assert 1, "Some string" # Trailing same-line | ||
assert aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa # Trailing same-line | ||
|
||
assert ( # Dangle1 | ||
# Dangle2 | ||
) | ||
|
||
# TODO: https://github.com/astral-sh/ruff/pull/5168#issuecomment-1630767421 | ||
# Leading assert | ||
assert ( | ||
# Leading test value | ||
True # Trailing test value same-line | ||
# Trailing test value own-line | ||
), "Some string" # Trailing msg same-line | ||
# Trailing assert | ||
|
||
# Random dangler | ||
|
||
# TODO: https://github.com/astral-sh/ruff/pull/5168#issuecomment-1630767421 | ||
# Leading assert | ||
assert ( | ||
# Leading test value | ||
True # Trailing test value same-line | ||
# Trailing test value own-line | ||
|
||
# Test dangler | ||
), "Some string" # Trailing msg same-line | ||
# Trailing assert |
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
Oops, something went wrong.