
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
This package is a plugin that sort dependencies alphabetically in pyproject.toml
after running poetry init
and poetry add
.
Since Introduce dependency sorting #3996 pull request still open
this plugin is a workaround for !312 issue.
Just use poetry self add
command to add this plugin.
poetry self add poetry-plugin-sort
If you used pipx to install Poetry, add the plugin via pipx inject
command.
pipx inject poetry poetry-plugin-sort
And if you installed Poetry using pip, you can install the plugin the same way.
pip install poetry poetry-plugin-sort
The plugin sorts dependencies each time when you change dependencies via the poetry init
and poetry add
commands.
To sort dependencies without making changes to the dependencies list, the plugin provides a sort
command.
poetry sort
--check
: Checks if dependencies are sorted and exits with a non-zero status code when it doesn't.The following configuration can be set in [tool.poetry-sort]
section of the pyproject.toml file or as system-wide environment variables:
enabled
\ POETRY_SORT_ENABLED
: Enable or disable sorting after invoking poetry init
and poetry add
commands. Default: True
.move-optionals-to-bottom
\ POETRY_SORT_MOVE_OPTIONALS_TO_BOTTOM
: Move optional packages to the bottom. Default: False
.FAQs
Poetry plugin to sort the dependencies alphabetically
We found that poetry-plugin-sort demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.