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
Sorry for slow response. ssort used to try to sort class methods and attributes topologically, but we found that this conflicted with automatic grouping based on type (attributes, constructors, special attributes, regular methods, etc) and so we stopped doing it.
At the file level, there aren't the same natural groups (except for maybe imports and if __name__ == "__main__":) and things tend to end up as graphs rather than a bag of methods that manipulate the same state.
When having a file like this:
and running
ssort --diff
on it,ssort doesn't modify the file at all (
1 file was left unchanged
).I'd expect that all members of
Foo
class with suffix1
to be sorted in the way they appear before the respective ones with suffix2
.Am I missing something? I thought
ssort
was handling such cases 🤔.The text was updated successfully, but these errors were encountered: