isort plug-in to sort imports by module length first
Project Links
Meta
Author: Daniele Varrazzo
Classifiers
This is an isort plugin implementing the style used in the Psycopg 3 project to sort:
imports in length order
import lists in natural order
The effect is the same of specifying --length-sort but only for the module names. For example:
from ccc import aaaa, bbb, cc from bbbb import ddd, ee from aaaaa import fff, gg
Example configuration:
[tool.isort] profile = "black" length_sort = true multi_line_output = 9 sort_order = "psycopg"
Note: because this is the first day I use isort at all, there is a chance that this plug-in is totally useless and the same can be done using isort features.
Wheel compatibility matrix
Files in release
No dependencies