-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
formatterRelated to the formatterRelated to the formatterstyleHow should formatted code lookHow should formatted code look
Description
Hi, I'm opening this issue per a suggestion from @MichaReiser, based on this closed issue: #8893.
The formatting question is whether Ruff should automatically remove a blank line after a block definition:
def some_func():
some_more_code()
to
def some_func():
some_more_code()
The alternative is "allow zero or one" newlines, i.e. not to remove the newline if it exists, but also not to automatically add one. This is the approach that Black chose in their 2024 preview style. Full Black discussion here: psf/black#4043.
ejovo13, jwnmulder, chicheng, k-peek, T-256 and 56 more
Metadata
Metadata
Assignees
Labels
formatterRelated to the formatterRelated to the formatterstyleHow should formatted code lookHow should formatted code look