-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed as not planned
Labels
formatterRelated to the formatterRelated to the formatterpreviewRelated to preview mode featuresRelated to preview mode features
Description
Implement Black's wrap_long_dict_values_in_parens style as a Ruff preview style.
Note:
This new style may not be accepted as part of Black's 2024 style guide.
my_dict = {
"a key in my dict": a_very_long_variable * and_a_very_long_function_call() * and_another_long_func() / 100000.0
}Ruff Stable
my_dict = {
"a key in my dict": a_very_long_variable
* and_a_very_long_function_call()
* and_another_long_func()
/ 100000.0
}Black Preview
my_dict = {
"a key in my dict": (
a_very_long_variable
* and_a_very_long_function_call()
* and_another_long_func()
/ 100000.0
)
}This new style does not apply to subscripts, although it probably should? But this is a non goal for now and tracked separately
Avasam
Metadata
Metadata
Assignees
Labels
formatterRelated to the formatterRelated to the formatterpreviewRelated to preview mode featuresRelated to preview mode features