ruff_python_formatter 0.0.6

This is an internal component crate of Ruff
Documentation
"""Compound statements with no body should be written on one line."""

if True:
    ...
elif True:
    ...
else:
    ...

if True:
    # comment
    ...
elif True:
    # comment
    ...
else:
    # comment
    ...

if True:
    ... # comment
elif True:
    ... # comment
else:
    ... # comment

for i in []:
    ...
else:
    ...

for i in []:
    # comment
    ...
else:
    # comment
    ...

for i in []:
    ... # comment
else:
    ... # comment

while True:
    ...
else:
    ...

while True:
    # comment
    ...
else:
    # comment
    ...

while True:
    ... # comment
else:
    ... # comment

with True:
    ...

with True:
    # comment
    ...

with True:
    ... # comment

with True:
    ...
    # comment

match x:
    case 1:
        ...
    case 2:
        # comment
        ...
    case 3:
        ... # comment

try:
    ...
except:
    ...
finally:
    ...

try:
    # comment
    ...
except:
    # comment
    ...
finally:
    # comment
    ...

try:
    ...  # comment
except:
    ...  # comment
finally:
    ...  # comment