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:
Alexander Hess 2026-11-28 04:43:49 +01:00
commit e451f03d0f
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -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])