Skip to main content

uv-sort

PyPI version

Sort uv's dependencies alphabetically.

The following sections are supported:

  • build-system.requires
  • dependency-groups
  • project.dependencies
  • project.optional-dependencies
  • tool.uv.build-constraint-dependencies
  • tool.uv.constraint-dependencies
  • tool.uv.dev-dependencies
  • tool.uv.exclude-dependencies
  • tool.uv.extra-build-dependencies
  • tool.uv.override-dependencies
  • tool.uv.sources

Installation

pip install uv-sort
# or
uv add uv-sort

[!Note] uv users do not need to install uv-sort and can instead use uv 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)

Source distribution for uv-sort 0.8.0
File Size Uploaded
uv_sort-0.8.0.tar.gz 26.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uv-sort 0.8.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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