Skip to main content

Sort uv's dependencies alphabetically

Project description

uv-sort

PyPI version

Sort uv's dependencies alphabetically.

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.
uv-sort --check

pre-commit

repos:
  - repo: https://github.com/ninoseki/uv-sort
    rev: "" # Use the sha / tag you want to point at
    hooks:
      - id: uv-sort

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.2.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

uv_sort-0.2.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uv_sort-0.2.0.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uv_sort-0.2.0.tar.gz
Algorithm Hash digest
SHA256 79ffdda55f0576522157f5394d4ccdfbedf8f0e0bc5e06561725df7cb122aca3
MD5 44812e5fb8a41035f7b9bb791c82d390
BLAKE2b-256 79552fcbec4cf1fc61db353fc4018ed873f8ba00b787949571d1773e86c5db0b

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: uv_sort-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.9

File hashes

Hashes for uv_sort-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdcd41cb5d5ea57d65d520af0a2f3ae797a65db157ba480e4b8350eade0c7731
MD5 3c2b52c0c819e32ec4541ad358818fb4
BLAKE2b-256 472fe8c219204806a3fd46066a3e6b92e0f9da3b1a5cf5cdf98d91b8e9f5b7cc

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page