From 2fe28a116995e78439b4d0b1fe8a5755a31d61bc Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Thu, 13 Feb 2025 11:54:46 +0100 Subject: [PATCH] chore(isort): add source link to project metadata, tweak readme --- tools/isort-psycopg/README.rst | 6 ++++-- tools/isort-psycopg/pyproject.toml | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/isort-psycopg/README.rst b/tools/isort-psycopg/README.rst index fe85fc57c..317d4d3d1 100644 --- a/tools/isort-psycopg/README.rst +++ b/tools/isort-psycopg/README.rst @@ -1,9 +1,10 @@ Psycopg style isort =================== -This is an isort_ plugin to sort: +This is an isort_ plugin implementing the style used in the `Psycopg 3`_ +project to sort: -- import in length order +- imports in length order - import lists in natural order The effect is the same of specifying ``--length-sort`` but only for the module @@ -25,3 +26,4 @@ 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. .. _isort: https://pycqa.github.io/isort/ +.. _psycopg 3: https://www.psycopg.org/ diff --git a/tools/isort-psycopg/pyproject.toml b/tools/isort-psycopg/pyproject.toml index c02413977..e3b1aca79 100644 --- a/tools/isort-psycopg/pyproject.toml +++ b/tools/isort-psycopg/pyproject.toml @@ -8,7 +8,10 @@ description = "isort plug-in to sort imports by module length first" # Note: to release a new version: # python -m build -o dist --wheel . # twine upload dist/isort_psycopg-*-py3-none-any.whl -version = "0.0.1" +version = "0.0.2" + +[project.urls] +Code = "https://github.com/psycopg/psycopg/tree/master/tools/isort-psycopg" [project.readme] file = "README.rst" -- 2.47.2