{"id":28050,"library":"poetry-pre-commit-plugin","title":"poetry-pre-commit-plugin","description":"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.","status":"active","version":"0.2.2","language":"python","source_language":"en","source_url":"https://github.com/vstrimaitis/poetry-pre-commit-plugin","tags":["poetry","plugin","pre-commit"],"install":[{"cmd":"pip install poetry-pre-commit-plugin","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Required; the plugin is designed to extend Poetry's CLI commands.","package":"poetry","optional":false},{"reason":"Required for the plugin to actually run the install.","package":"pre-commit","optional":false}],"imports":[{"note":"","wrong":null,"symbol":"PoetryPreCommitPlugin","correct":"from poetry_pre_commit_plugin.plugin import PoetryPreCommitPlugin"}],"quickstart":{"code":"# Install the plugin system-wide or in your Poetry environment\n# Then, in your project, ensure pre-commit is configured (.pre-commit-config.yaml)\n# Run: poetry install\n# The plugin will automatically run pre-commit install if hooks are present.\n# No additional code needed.","lang":"python","description":"No code required; the plugin hooks into `poetry install` and `poetry add`."},"warnings":[{"fix":"To disable temporarily, run `POETRY_PRE_COMMIT_SKIP=1 poetry install`.","message":"Plugin runs on every `poetry install` or `poetry add`, which may be unexpected if you have many subdependencies.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to 0.1.2+ where it gracefully skips.","message":"The plugin only works inside a Poetry project. Running outside a project directory will cause errors.","severity":"gotcha","affected_versions":"<0.1.2"},{"fix":"Upgrade to >=0.2.0.","message":"Poetry 2.0.0 changed event system; older versions of the plugin (<0.2.0) are incompatible.","severity":"breaking","affected_versions":"<0.2.0"},{"fix":"Consider using pre-commit directly or other alternatives if issues arise.","message":"The plugin may not be actively maintained; check for updates.","severity":"deprecated","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install with `pip install poetry-pre-commit-plugin` in the same Python environment where Poetry is installed.","cause":"Plugin not installed in the same environment as Poetry.","error":"ModuleNotFoundError: No module named 'poetry_pre_commit_plugin'"},{"fix":"Set `REQUESTS_CA_BUNDLE` or `SSL_CERT_FILE` to a valid CA bundle, or use `pre-commit install` manually.","cause":"Plugin triggers pre-commit which may require network access; SSL certificates not found.","error":"The POETRY_REQUESTS_CA_BUNDLE environment variable is set... (or similar SSL issues)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}