Sort uv's dependencies alphabetically
Project description
uv-sort
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.--dry-run
: Output the modified file to stdout without modifying the file.
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.4.0.tar.gz
(17.9 kB
view details)
Built Distribution
File details
Details for the file uv_sort-0.4.0.tar.gz
.
File metadata
- Download URL: uv_sort-0.4.0.tar.gz
- Upload date:
- Size: 17.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d3780aea12d33cae4a3c67475b78b78b8e0a00b5b385f6d20140e9b26a0683d |
|
MD5 | 2b317b8424466252695495a92335b87d |
|
BLAKE2b-256 | 2a065d43ab8f6b84a2b294a753bc33a03d04c93c01baa392659dcabf8ab2f31e |
Provenance
File details
Details for the file uv_sort-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: uv_sort-0.4.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e41a6e0d3a86185ab1cdddb74da504315ebf2c89553c5cfdad5bd8a9a7af02bf |
|
MD5 | 444f0a9adaa7486bc458f0b36c6c6d34 |
|
BLAKE2b-256 | f0f8e3a6ec74a97cdfc7b14d7c93bf4a7482b87f27165a95c00765146a68fae3 |