-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationformatterRelated to the formatterRelated to the formatter
Description
Hi, I noticed a small difference between Black and ruff's formatting, that is not listed in https://docs.astral.sh/ruff/formatter/#intentional-deviations. I've added a sample below.
# Input:
with some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
), some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
), some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
):
print("hi")
# Black:
with some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
), some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
), some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
):
print("hi")
# Ruff:
with some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
), some_context_manager(
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")
), some_context_manager("aaaaaaaaaaaaaaaaaaaaaaa", another_long_function("test1")):
print("hi")This is on ruff v0.1.4 and black 23.11.0, both with line-length 100.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationformatterRelated to the formatterRelated to the formatter