uv-sort
Sort uv's dependencies alphabetically.
The following sections are supported:
build-system.requiresdependency-groupsproject.dependenciesproject.optional-dependenciestool.uv.build-constraint-dependenciestool.uv.constraint-dependenciestool.uv.dev-dependenciestool.uv.exclude-dependenciestool.uv.extra-build-dependenciestool.uv.override-dependenciestool.uv.sources
Installation
pip install uv-sort
# or
uv add uv-sort
[!Note]
uvusers do not need to installuv-sortand can instead useuv tools. See usage examples.
Usage
# sort dependencies in pyproject.toml in the current working directory
$ uv-sort
# or you can specify the path
$ uv-sort /path/to/pyproject.toml
# or using uv tools (no install)
$ uvx uv-sort
Options
--check: Check if dependencies are sorted and exit with a non-zero status code when they are not.--dry-run: Output the modified file to stdout without modifying the file.
With pre-commit
repos:
- repo: https://github.com/ninoseki/uv-sort
rev: "" # Use the sha / tag you want to point at
hooks:
- id: uv-sort
With Lefthook
pre-commit:
commands:
uv-sort:
run: uv-sort {staged_files}
glob: "pyproject.toml"
Metadata
Release files for uv-sort 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uv_sort-0.8.0.tar.gz | 26.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uv_sort-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.1 kB
Release files / uv_sort-0.8.0.tar.gz
| Download URL | uv_sort-0.8.0.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19747d68ddacd2bc8597628c103f608143edddd7577ceaf3b1d50d93286c4fa1
|
|
BLAKE2b-256 checksum How to use checksums |
b2ba6ff0f9bad3a04f5841e2e6509637e1e19707610f782030e3f8797f067af9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.
Transparency logRelease files / uv_sort-0.8.0-py3-none-any.whl
| Download URL | uv_sort-0.8.0-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
84015c9246ec58ccb116b12e705114a14c9eb73344f88f69975700cd654685d7
|
|
BLAKE2b-256 checksum How to use checksums |
380b33ba36f338b203878795d2e726dec309173cdaa41fda434940ab1e84f263
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 30, 2026.
Transparency log