uv-sort-0.7.0
توضیحات
Sort uv's dependencies alphabetically
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | uv-sort-0.7.0 |
| نام | uv-sort |
| نسخه کتابخانه | 0.7.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/uv-sort/ |
| مجوز | MIT License Copyright (c) 2024 Manabu Niseki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
# uv-sort
[](https://badge.fury.io/py/uv-sort)
Sort uv's dependencies alphabetically.
The following sections are supported:
- `dependency-groups`
- `project.dependencies`
- `project.optional-dependencies`
- `tool.uv.dev-dependencies`
- `tool.uv.sources`
## Installation
```bash
pip install uv-sort
# or
uv add uv-sort
```
## Usage
```bash
# 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.
## With [pre-commit](https://pre-commit.com/)
```yaml
repos:
- repo: https://github.com/ninoseki/uv-sort
rev: "" # Use the sha / tag you want to point at
hooks:
- id: uv-sort
```
## With [Lefthook](https://lefthook.dev/)
```yaml
pre-commit:
commands:
uv-sort:
run: uv-sort {staged_files}
glob: "pyproject.toml"
```
نیازمندی
| مقدار | نام |
|---|---|
| - | packaging>=24.1 |
| - | tomlkit~=0.13 |
| - | typer>=0.15 |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl uv-sort-0.7.0:
pip install uv-sort-0.7.0.whl
نصب پکیج tar.gz uv-sort-0.7.0:
pip install uv-sort-0.7.0.tar.gz