Skip to main content

Sort uv's dependencies alphabetically

Project description

uv-sort

PyPI version

Sort uv's dependencies alphabetically.

The following sections are supported:

  • dependency-groups
  • project.dependencies
  • project.optional-dependencies
  • tool.uv.dev-dependencies
  • tool.uv.sources

Installation

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

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

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"

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

uv_sort-0.7.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

uv_sort-0.7.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file uv_sort-0.7.0.tar.gz.

File metadata

  • Download URL: uv_sort-0.7.0.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uv_sort-0.7.0.tar.gz
Algorithm Hash digest
SHA256 bce0f840fac8e44a287cba4c9113efc33d6938d0e983984370ad2974f5f8a450
MD5 590b8c9af2c54171bf220061a7414bac
BLAKE2b-256 edc8ace6136cf5983822ad69c301e155c84d1876cce48e728731279d195ad26d

See more details on using hashes here.

Provenance

The following attestation bundles were made for uv_sort-0.7.0.tar.gz:

Publisher: publish.yml on ninoseki/uv-sort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file uv_sort-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: uv_sort-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uv_sort-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efb88531ac848668b00f3ac53bae49ce8d3712743ef9dcd86f4d3f3dd5cc55b6
MD5 3b8aeb3a806954ebf531539f250e3fa6
BLAKE2b-256 6653a1a51c94f671f41d441532ee791c25d22f92df7dc76aac2b0697b558e286

See more details on using hashes here.

Provenance

The following attestation bundles were made for uv_sort-0.7.0-py3-none-any.whl:

Publisher: publish.yml on ninoseki/uv-sort

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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