Skip to main content

isort plug-in to sort imports by module length first

Project description

This is an isort plugin implementing the style used in the gaussdb 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 = "gaussdb"

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isort_gaussdb-0.0.4.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isort_gaussdb-0.0.4-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file isort_gaussdb-0.0.4.tar.gz.

File metadata

  • Download URL: isort_gaussdb-0.0.4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for isort_gaussdb-0.0.4.tar.gz
Algorithm Hash digest
SHA256 36e1c4ba82f5f0097c660d2d954c5b15a0a8749d242b23920d65e9a6a08096de
MD5 1ecf75c69862a1ab887927280aeec329
BLAKE2b-256 acf0a1a0f35731271d1b8936005aa77024686ef3d3049f7ba6a8b0847e8fcc88

See more details on using hashes here.

File details

Details for the file isort_gaussdb-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: isort_gaussdb-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for isort_gaussdb-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5386c3136a2fcacd57b8229648bb1602dda97c6f4b62e1294c03c95653acacc8
MD5 f5b0cb8119a61a14ee3141aed3af790d
BLAKE2b-256 3d4edd79eff10f783f98c0fda43c157048c242a5bc6a6a5a6e33701378c5dd46

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page