You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In black v24 a few new rules become stable.
One of them is
Dummy class and function implementations consisting only of ... are formatted more compactly (#3796)
Most of the dummy bodies adjustment black makes are fine with ssort,
but a dummy class isn't.
Consider this simple file:
classMyException(Exception):
...
black v24 now re-formats it as:
classMyException(Exception): ...
while ssort re-formats it back to the original "shape".
I think this is a bug on ssort side.
We have both ssort and black configured in our pre-commit setup
and now we're unable to use them together.
The text was updated successfully, but these errors were encountered:
slafs
changed the title
ssort insists on reformatting dummy classes (conflict with black 24)
ssort reformats dummy classes (conflict with black 24)
Jan 29, 2024
In black v24 a few new rules become stable.
One of them is
Most of the dummy bodies adjustment black makes are fine with ssort,
but a dummy class isn't.
Consider this simple file:
black v24 now re-formats it as:
while
ssort
re-formats it back to the original "shape".I think this is a bug on ssort side.
We have both
ssort
andblack
configured in our pre-commit setupand now we're unable to use them together.
The text was updated successfully, but these errors were encountered: