Repository navigation
docs: use the plugin repo for the poetry-export pre-commit hook - #11213
Merged
Secrus merged 2 commits intoNov 9, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Secrus
approved these changes
Nov 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Check List
Resolves: no existing issue that I could find
Both usage examples in
docs/pre-commit-hooks.mdlistpoetry-exportunderrepo: https://github.com/python-poetry/poetry, but that repo stopped defining the hook:.pre-commit-hooks.yamlat tag1.8.3haspoetry-check,poetry-lock,poetry-exportandpoetry-install.2.0.0and onmainit has onlypoetry-check,poetry-lockandpoetry-install.poetry-exportis now defined inpython-poetry/poetry-plugin-export, as the warning in thepoetry-exportsection of this page already says.So anyone copying these examples with a current
revis asking pre-commit for a hook that repo doesn't provide. This PR movespoetry-exportto its ownpoetry-plugin-exportentry in both examples.I left the FAQ example alone because it pins
rev: 1.8.3, where the hook still exists.I ran both versions with pre-commit. With Poetry
2.5.1, the old example fails with[ERROR] `poetry-export` is not present in repository https://github.com/python-poetry/poetry. Withpoetry-plugin-export1.10.1, pre-commit finds and runs the hook. In my throwaway project the hook then exited 1 because itspoetry.lockwas a placeholder, which is unrelated to this change. I didn't build the docs locally.AI disclosure: this PR was generated by Claude Code (Claude Opus 5.5).