Skip to content

Commit

Permalink
Don't expect trailing comments to trigger format
Browse files Browse the repository at this point in the history
  • Loading branch information
cnpryer committed Jul 9, 2023
1 parent 695df60 commit ce249f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
) # Completed
# Done deleting

# NOTE: This shouldn't format. See https://github.com/astral-sh/ruff/issues/5630.
# Delete something
del x, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, b, c, d # Delete these
# Ready to delete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ del (
) # Completed
# Done deleting
# NOTE: This shouldn't format. See https://github.com/astral-sh/ruff/issues/5630.
# Delete something
del x, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, b, c, d # Delete these
# Ready to delete
Expand Down Expand Up @@ -194,14 +195,9 @@ del (
) # Completed
# Done deleting
# NOTE: This shouldn't format. See https://github.com/astral-sh/ruff/issues/5630.
# Delete something
del (
x,
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
b,
c,
d,
) # Delete these
del x, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, b, c, d # Delete these
# Ready to delete
# Delete something
Expand Down

0 comments on commit ce249f5

Please sign in to comment.