uv-sort


Nameuv-sort JSON
Version 0.4.0 PyPI version JSON
download
home_pageNone
SummarySort uv's dependencies alphabetically
upload_time2024-09-25 10:53:17
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT 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.
keywords uv
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # uv-sort

[![PyPI version](https://badge.fury.io/py/uv-sort.svg)](https://badge.fury.io/py/uv-sort)

Sort uv's dependencies alphabetically.

## 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.

## pre-commit

```yaml
repos:
  - repo: https://github.com/ninoseki/uv-sort
    rev: "" # Use the sha / tag you want to point at
    hooks:
      - id: uv-sort
```

## lefthook

```yaml
pre-commit:
  commands:
    uv-sort:
      run: uv-sort {staged_files}
      glob: "pyproject.toml"
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "uv-sort",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "uv",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/2a/06/5d43ab8f6b84a2b294a753bc33a03d04c93c01baa392659dcabf8ab2f31e/uv_sort-0.4.0.tar.gz",
    "platform": null,
    "description": "# uv-sort\n\n[![PyPI version](https://badge.fury.io/py/uv-sort.svg)](https://badge.fury.io/py/uv-sort)\n\nSort uv's dependencies alphabetically.\n\n## Installation\n\n```bash\npip install uv-sort\n# or\nuv add uv-sort\n```\n\n## Usage\n\n```bash\n# sort dependencies in pyproject.toml in the current working directory\n$ uv-sort\n# or you can specify the path\n$ uv-sort /path/to/pyproject.toml\n```\n\n### Options\n\n- `--check`: Check if dependencies are sorted and exit with a non-zero status code when they are not.\n- `--dry-run`: Output the modified file to stdout without modifying the file.\n\n## pre-commit\n\n```yaml\nrepos:\n  - repo: https://github.com/ninoseki/uv-sort\n    rev: \"\" # Use the sha / tag you want to point at\n    hooks:\n      - id: uv-sort\n```\n\n## lefthook\n\n```yaml\npre-commit:\n  commands:\n    uv-sort:\n      run: uv-sort {staged_files}\n      glob: \"pyproject.toml\"\n```\n",
    "bugtrack_url": null,
    "license": "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.",
    "summary": "Sort uv's dependencies alphabetically",
    "version": "0.4.0",
    "project_urls": {
        "Repository": "https://github.com/ninoseki/uv-sort"
    },
    "split_keywords": [
        "uv"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0f8e3a6ec74a97cdfc7b14d7c93bf4a7482b87f27165a95c00765146a68fae3",
                "md5": "444f0a9adaa7486bc458f0b36c6c6d34",
                "sha256": "e41a6e0d3a86185ab1cdddb74da504315ebf2c89553c5cfdad5bd8a9a7af02bf"
            },
            "downloads": -1,
            "filename": "uv_sort-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "444f0a9adaa7486bc458f0b36c6c6d34",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5232,
            "upload_time": "2024-09-25T10:53:16",
            "upload_time_iso_8601": "2024-09-25T10:53:16.210118Z",
            "url": "https://files.pythonhosted.org/packages/f0/f8/e3a6ec74a97cdfc7b14d7c93bf4a7482b87f27165a95c00765146a68fae3/uv_sort-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a065d43ab8f6b84a2b294a753bc33a03d04c93c01baa392659dcabf8ab2f31e",
                "md5": "2b317b8424466252695495a92335b87d",
                "sha256": "0d3780aea12d33cae4a3c67475b78b78b8e0a00b5b385f6d20140e9b26a0683d"
            },
            "downloads": -1,
            "filename": "uv_sort-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2b317b8424466252695495a92335b87d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 17915,
            "upload_time": "2024-09-25T10:53:17",
            "upload_time_iso_8601": "2024-09-25T10:53:17.429242Z",
            "url": "https://files.pythonhosted.org/packages/2a/06/5d43ab8f6b84a2b294a753bc33a03d04c93c01baa392659dcabf8ab2f31e/uv_sort-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-25 10:53:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ninoseki",
    "github_project": "uv-sort",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "uv-sort"
}
        
Elapsed time: 0.33510s