Formatter: %
formatting in dictionary keys
#6974
Labels
formatter
Related to the formatter
Milestone
%
formatting in dictionary keys
#6974
Black breaks dictionary entries after the
%
even if the key otherwise would fit:IMO, this is very difficult to parse and probably just a fallout of their implementation that inserts line breaks after the highest priority operator, which happens to be the
%
in these cases.Ruff tries to keep the key on its own line and instead breaks the value:
IMO, this is more readable.
#6069
The text was updated successfully, but these errors were encountered: