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.3.0.tar.gz
(16.6 kB
view details)
Built Distribution
File details
Details for the file uv_sort-0.3.0.tar.gz
.
File metadata
- Download URL: uv_sort-0.3.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0104e925619f6ecf469251378a3940268665a1f5052a45a52db1e3b53c5e6a7 |
|
MD5 | 02d7012f514d6517b40a05641b023e96 |
|
BLAKE2b-256 | a6470a75324c1d0c87cf61fb344e2ea85bfabcf24885fb8a61c0c86952b5baed |
Provenance
File details
Details for the file uv_sort-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: uv_sort-0.3.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.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1e2bec88567f38df7df6e2c84decdc9926056668713f831c403060eb93623fc |
|
MD5 | 173b054226f76f9735f175067616c80f |
|
BLAKE2b-256 | 0513c12ab6dc87c5733fa6dbeec4710f137e9fdee65400d0adf93193310b22c9 |