Registry / devops / poetry-pre-commit-plugin

poetry-pre-commit-plugin

JSON →
library0.2.2pypypiunverified

A Poetry plugin that automatically installs pre-commit hooks when they are added to a project. Current version: 0.2.2, compatible with Poetry 2.0.0+. Released occasionally, with maintenance focused on compatibility.

pip install poetry-pre-commit-plugin
INSTALL
IMPORT
SIG · POETRY-PRE-COMMIT-
P
poetry-pre-commit-plugin
devopspythonv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PoetryPreCommitPlugin
from poetry_pre_commit_plugin import PoetryPreCommitPlugin
from poetry_pre_commit_plugin.plugin import PoetryPreCommitPlugin

No code required; the plugin hooks into `poetry install` and `poetry add`.

# Install the plugin system-wide or in your Poetry environment # Then, in your project, ensure pre-commit is configured (.pre-commit-config.yaml) # Run: poetry install # The plugin will automatically run pre-commit install if hooks are present. # No additional code needed.
Debug
Known issues
gotchaPlugin runs on every `poetry install` or `poetry add`, which may be unexpected if you have many subdependencies.
fix
To disable temporarily, run `POETRY_PRE_COMMIT_SKIP=1 poetry install`.
affects: all
gotchaThe plugin only works inside a Poetry project. Running outside a project directory will cause errors.
fix
Upgrade to 0.1.2+ where it gracefully skips.
affects: <0.1.2
breakingPoetry 2.0.0 changed event system; older versions of the plugin (<0.2.0) are incompatible.
fix
Upgrade to >=0.2.0.
affects: <0.2.0
deprecatedThe plugin may not be actively maintained; check for updates.
fix
Consider using pre-commit directly or other alternatives if issues arise.
affects: all
Upgrade
Version history
0.2.2latest on PyPI · released Feb 25, 2025
Audit
Dependencies
poetryrequiredRequired; the plugin is designed to extend Poetry's CLI commands.
pre-commitrequiredRequired for the plugin to actually run the install.
Agent activity
4 hits · last 30 days
node
4
Resources
poetry-pre-commit-plugin — pip install poetry-pre-commit-plugin · libregistry