{"id":24252,"library":"poetry-plugin-sort","title":"Poetry Plugin Sort","description":"A Poetry plugin that automatically sorts dependencies alphabetically in pyproject.toml. Version 0.3.0 requires Python >=3.8, <4.0. Released under MIT license. Active development, infrequent releases.","status":"active","version":"0.3.0","language":"python","source_language":"en","source_url":"https://github.com/andrei-shabanski/poetry-plugin-sort","tags":["poetry","plugin","sort","dependencies","alphabetical"],"install":[{"cmd":"pip install poetry-plugin-sort","lang":"bash","label":"Install via pip"},{"cmd":"poetry self add poetry-plugin-sort","lang":"bash","label":"Install as Poetry plugin"}],"dependencies":[{"reason":"This is a Poetry plugin; requires Poetry to be installed and the plugin to be added to Poetry's plugins.","package":"poetry","optional":false}],"imports":[{"note":"Direct import of the plugin class is rarely needed; the plugin is automatically loaded by Poetry when installed as a plugin. Use 'poetry self add poetry-plugin-sort' instead.","wrong":"","symbol":"PoetrySortPlugin","correct":"from poetry_plugin_sort.plugin import PoetrySortPlugin"}],"quickstart":{"code":"pip install poetry-plugin-sort\npoetry self add poetry-plugin-sort\npoetry sort","lang":"bash","description":"Install the plugin globally for Poetry, then run 'poetry sort' to alphabetically sort the dependencies in pyproject.toml."},"warnings":[{"fix":"Re-run 'poetry self add poetry-plugin-sort' after upgrading Poetry or the plugin.","message":"After updating the plugin, you must run 'poetry self show plugins' to verify the plugin is active. If not listed, re-add with 'poetry self add poetry-plugin-sort'.","severity":"gotcha","affected_versions":"all"},{"fix":"Manually sort other dependency groups or use a tool like 'toml-sort'.","message":"The 'poetry sort' command only sorts dependencies in the [tool.poetry.dependencies] and [tool.poetry.dev-dependencies] sections, not other groups like [tool.poetry.group.*.dependencies].","severity":"gotcha","affected_versions":"all"},{"fix":"Run 'poetry self add poetry-plugin-sort' to properly register the plugin.","message":"If you installed the plugin via 'pip install' without using 'poetry self add', the plugin won't be recognized by Poetry. The correct installation method is 'poetry self add poetry-plugin-sort' (requires Poetry 1.2+).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Reinstall using 'poetry self add poetry-plugin-sort' instead of 'pip install poetry-plugin-sort'.","cause":"The plugin is installed via pip but not registered as a Poetry plugin, or Poetry is not finding it.","error":"ModuleNotFoundError: No module named 'poetry_plugin_sort'"},{"fix":"Ensure you've run 'poetry self add poetry-plugin-sort' and that your Poetry version is >=1.2.0.","cause":"The plugin is not installed or not registered correctly.","error":"Command 'sort' not found. Did you mean one of these? ..."},{"fix":"Navigate to the root of your project (where pyproject.toml is located) and run 'poetry sort'.","cause":"The command must be run from a directory containing a pyproject.toml file.","error":"Cannot use 'poetry sort' because no pyproject.toml found"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}