Skip to main content

Psycopg style isort

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.

Metadata

Release files for isort-psycopg 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for isort-psycopg 0.0.3
File Interpreter ABI Platform
isort_psycopg-0.0.3-py3-none-any.whl Python 3 none any Details

Release files / isort_psycopg-0.0.3-py3-none-any.whl

Download URL isort_psycopg-0.0.3-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
439287a64af8fe06b07f54a5ee03d37611e1426a83c43badf3006ea3c33e3706
BLAKE2b-256 checksum
How to use checksums
1e9bbe0354a574ac236959ef1eab2959aa81bf1496949edcb3041a59c12bfa6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page