Sorts dependencies in pyproject.toml or uv.lock files alphabetically, designed for use with the uv package manager. Current version 0.7.0, requires Python >=3.10. Released under MIT license; maintained actively with periodic updates.
pip install uv-sortVerified import paths — ran on the pinned version, not inferred.
Sort dependencies in a pyproject.toml file using the Python API.
Add --check flag to see changes without modifying.
Manually sort other sections if needed.
Validate with `toml` library before sorting.
Run `tomlcheck` or fix syntax errors manually.
Upgrade Python to 3.10+ or use a different tool.
Ensure your file includes [dependencies] or [tool.uv] sections.