Skip to content

Commit

Permalink
Improve parentheses handling in some cases (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Feb 15, 2023
1 parent 8a8c748 commit c3adfb6
Show file tree
Hide file tree
Showing 13 changed files with 697 additions and 348 deletions.
17 changes: 9 additions & 8 deletions crates/ruff_fmt/example.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
if ( # Foo
# Bar
a, # A
# Baz
b, # B
# Bop
): # Qux
pass
{
x
for (x, y, a, x, y, a, x, y, a, x, y, a, x, y, a, x, y, a, x, y, a, x, y, a, x, y, a) in z
}

x = ajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsa

(ajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsaajdjaskldsa)
(foo)
Loading

0 comments on commit c3adfb6

Please sign in to comment.