fix: pin poetry hook to 2.4.1 to match lock and CI (HYBIM-793)#23
Merged
Conversation
…-793) The poetry-lock/poetry-check pre-commit hook was pinned to Poetry 2.2.0, while the committed poetry.lock and CI (pipx install poetry==2.4.1) use 2.4.1. Because the hook runs in its own pinned environment, it rewrote poetry.lock's @generated header on every commit, forcing developers to bypass it with `git commit --no-verify`. Bump the hook rev to 2.4.1 so it matches the lock-file generator and CI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fercor-cisco
enabled auto-merge (squash)
June 13, 2026 03:16
zhirafovod
approved these changes
Jun 13, 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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Problem
The
poetry-lock/poetry-checkpre-commit hook is pinned to Poetry 2.2.0, while the committedpoetry.lockand CI both use 2.4.1:.pre-commit-config.yaml(poetryhookrev)2.2.0poetry.lock(@generated by Poetry)2.4.1.github/workflows/ci-tests.yaml(pipx install poetry==)2.4.1Because the hook runs in its own pinned environment, it rewrites
poetry.lock's@generatedheader on every commit, which then gets flipped back by local/CI runs — forcing developers to bypass the hook withgit commit --no-verify.Fix
Bump the hook
revfrom2.2.0to2.4.1so it matches the lock-file generator and CI. The2.4.1tag was confirmed to exist inpython-poetry/poetry.Scope
This PR intentionally addresses only the Poetry version mismatch. A separate
poetry.lockcontent drift (committedgrpcio 1.74.0vspyproject.toml's>=1.80.0constraint) is out of scope and should be handled in its own change.Verification
2.4.1is a valid tag (git ls-remote).poetry checkpasses with local Poetry 2.4.1.rev: 2.4.1: the lock header stays@generated by Poetry 2.4.1— the version-flip churn is gone.🤖 Generated with Claude Code