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

Uploaded Source

Built Distribution

uv_sort-0.2.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uv_sort-0.2.1.tar.gz
  • Upload date:
  • Size: 16.4 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.1.tar.gz
Algorithm Hash digest
SHA256 52cf562849d884154302badae01457a1e6a5f989e155b29361c89b147de37447
MD5 278c88d227f6380a9a514de7f850ac0b
BLAKE2b-256 af56857ebc9782c98e4552f18ce2d9699da560a6f4945a3e428359f94b1dfa69

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: uv_sort-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db21f13ab5725a35c006b95ee944c08eb4fd773c16cba349649ba26888eb4011
MD5 3862e4396dc90599c24cbae781e9ab64
BLAKE2b-256 267a8870356893c6b42014eb2a13ffde9cc6eabdf79b05effb830083a5a522ae

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