{"id":20829580,"url":"https://github.com/celsiusnarhwal/poetry-sort","last_synced_at":"2025-05-07T21:44:15.735Z","repository":{"id":65105034,"uuid":"581966008","full_name":"celsiusnarhwal/poetry-sort","owner":"celsiusnarhwal","description":"Alphabetically sort your Poetry dependencies","archived":false,"fork":false,"pushed_at":"2025-03-03T17:41:45.000Z","size":129,"stargazers_count":0,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T08:56:45.689Z","etag":null,"topics":["dependencies","poetry","pyproject","sorting"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/poetry-sort","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/celsiusnarhwal.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-25T04:37:59.000Z","updated_at":"2025-02-17T12:05:03.000Z","dependencies_parsed_at":"2023-01-13T15:35:34.613Z","dependency_job_id":"bb893232-eed5-4264-a190-0232304f8f77","html_url":"https://github.com/celsiusnarhwal/poetry-sort","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"124ccf7572253721929f27af6ece4eb31086d8b2"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Fpoetry-sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Fpoetry-sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Fpoetry-sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/celsiusnarhwal%2Fpoetry-sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/celsiusnarhwal","download_url":"https://codeload.github.com/celsiusnarhwal/poetry-sort/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252961835,"owners_count":21832190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dependencies","poetry","pyproject","sorting"],"created_at":"2024-11-17T23:21:07.860Z","updated_at":"2025-05-07T21:44:15.683Z","avatar_url":"https://github.com/celsiusnarhwal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# poetry-sort\n\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/poetry-sort?logo=python\u0026logoColor=white\u0026style=for-the-badge)](https://pypi.org/project/poetry-sort)\n[![PyPI](https://img.shields.io/pypi/v/poetry-sort?logo=pypi\u0026color=green\u0026logoColor=white\u0026style=for-the-badge)](https://pypi.org/project/poetry-sort)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/celsiusnarhwal/poetry-sort?logo=github\u0026color=orange\u0026logoColor=white\u0026style=for-the-badge)](https://github.com/celsiusnarhwal/poetry-sort/releases)\n[![PyPI - License](https://img.shields.io/pypi/l/poetry-sort?color=03cb98\u0026style=for-the-badge)](https://github.com/celsiusnarhwal/poetry-sort/blob/main/LICENSE.md)\n[![Code style: Black](https://aegis.celsiusnarhwal.dev/badge/black?style=for-the-badge)](https://github.com/psf/black)\n\npoetry-sort is a [Poetry](https://python-poetry.org/) plugin that alphabetically sorts the dependencies in\nyour `pyproject.toml` file.\n\n## Installation\n\n```bash\npoetry self add poetry-sort\n```\n\n## Usage\n\n```bash\npoetry sort\n```\n\n`poetry sort` supports the `--with`, `--without`, and `--only` options, which function identically to `poetry install`.\nFor full usage information, run `poetry sort --help`.\n\npoetry-sort runs automatically whenever you run `poetry add` or `poetry init` and will sort only the dependency\ngroups that were modified by the command.\n\n## Configuration\n\nYou can configure poetry-sort via the `tool.poetry.sort` section of `pyproject.toml`.\n\n```toml\n[tool.sort.config]\nauto = true\ncase-sensitive = false\nsort-python = false\nformat = true\n\n```\n\nThe following options are available:\n\n- `auto` (`bool`, default: `true`): Whether or not to automatically sort dependencies when running `poetry add`\n  or `poetry init`. `poetry sort` can always be run manually, regardless of this setting.\n\n- `case-sensitive` (`bool`, default: `false`): Whether to take case into account when sorting.\n\n- `sort-python` (`bool`, default: `false`): Whether to also sort the `python` dependency. If `false`, the `python`\n  dependency will be placed at the top of `tool.poetry.dependencies`; if `true`, it will be sorted alphebetically with\n  everything else.\n\n- `format` (`bool`, default: `true`): Whether to apply some basic formatting to `pyproject.toml` after sorting.\n  If `true`, poetry-sort will :take all occurences of three or more consecutive newlines in `pyproject.toml` and\n  replace them with two newlines.\n\n## License\n\npoetry-sort is licensed under the [MIT License](https://github.com/celsiusnarhwal/poetry-sort/blob/main/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcelsiusnarhwal%2Fpoetry-sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcelsiusnarhwal%2Fpoetry-sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcelsiusnarhwal%2Fpoetry-sort/lists"}