Add ruff to the "format" session
`ruff format` adds parentheses around multi-line lambda bodies and removes blank lines after block openers, both of which `black` accepts. Lines with `# type:ignore` are shortened because `black` counts pragma comments toward the line length and `ruff` does not.
This commit is contained in:
parent
318dff8fc8
commit
e451f03d0f
1 changed files with 123 additions and 79 deletions
|
|
@ -1097,7 +1097,6 @@ def test_make_random_orders( # noqa:C901
|
|||
"""
|
||||
# Generate a large number of `Order`s to obtain a large variance of data.
|
||||
for _ in range(1_000):
|
||||
|
||||
# Ad-hoc `Order`s are far more common than pre-orders.
|
||||
scheduled = random.choice([True, False, False, False, False])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue