Replies: 2 comments
-
I have hacked isort with this mung to tell apart when the sort is being applied to objects or module. Is there a builtin way to do this instead? Is this even moral? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I have put together the isort-psycopg extension, that we started using in our project. If there is a built-in way to do this instead of using this extension I'm happy to know. Conversely, if this extension is useful to anyone, here it is. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am trying isort on psycopg codebase (psycopg/psycopg#1006). So far I have informally used a style ordering imports by length and imported objects alphabetically, e.g.
With the configuration:
the ordering by length is respected, but the imported objects are ordered by length too:
Is there a way to use alphabetical order for the imported objects? Even writing an ordering plugin doesn't seem to help as it seems the ordering is used both for modules and objects without the possibility of telling them apart.
Beta Was this translation helpful? Give feedback.
All reactions