Try isort instead https://github.com/PyCQA/isort
https://pycqa.github.io/isort/docs/configuration/black_compa...
I hope not!
> Sorting module- and from-imports separately also makes it much easier for many people to visually scan a block of imports.
For me it's the opposite. My brain skips over the irrelevant parts (i.e. import/from). Not moving the import also produces better git diffs
$ cat foo.py
from x import a, b, d, e
from x import c as C
$ isort foo.py
Fixing /tmp/foo.py
$ cat foo.py
from x import a, b
from x import c as C
from x import d, e $ usort diff foo.py
--- a/foo.py
+++ b/foo.py
@@ -1,2 +1 @@
-from x import a, b, d, e
-from x import c as C
+from x import a, b, c as C, d, e
https://usort.readthedocs.io