Skip to content

fix: pin poetry hook to 2.4.1 to match lock and CI (HYBIM-793)#23

Merged
fercor-cisco merged 1 commit into
mainfrom
HYBIM-793
Jun 13, 2026
Merged

fix: pin poetry hook to 2.4.1 to match lock and CI (HYBIM-793)#23
fercor-cisco merged 1 commit into
mainfrom
HYBIM-793

Conversation

@fercor-cisco

Copy link
Copy Markdown
Collaborator

Problem

The poetry-lock / poetry-check pre-commit hook is pinned to Poetry 2.2.0, while the committed poetry.lock and CI both use 2.4.1:

Source Poetry version
.pre-commit-config.yaml (poetry hook rev) 2.2.0
poetry.lock (@generated by Poetry) 2.4.1
.github/workflows/ci-tests.yaml (pipx install poetry==) 2.4.1

Because the hook runs in its own pinned environment, it rewrites poetry.lock's @generated header on every commit, which then gets flipped back by local/CI runs — forcing developers to bypass the hook with git commit --no-verify.

Fix

Bump the hook rev from 2.2.0 to 2.4.1 so it matches the lock-file generator and CI. The 2.4.1 tag was confirmed to exist in python-poetry/poetry.

Scope

This PR intentionally addresses only the Poetry version mismatch. A separate poetry.lock content drift (committed grpcio 1.74.0 vs pyproject.toml's >=1.80.0 constraint) is out of scope and should be handled in its own change.

Verification

  • Confirmed 2.4.1 is a valid tag (git ls-remote).
  • poetry check passes with local Poetry 2.4.1.
  • Ran the hook with rev: 2.4.1: the lock header stays @generated by Poetry 2.4.1 — the version-flip churn is gone.

🤖 Generated with Claude Code

…-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 fercor-cisco changed the title fix(pre-commit): pin poetry hook to 2.4.1 to match lock and CI (HYBIM-793) fix: pin poetry hook to 2.4.1 to match lock and CI (HYBIM-793) Jun 13, 2026
@fercor-cisco
fercor-cisco enabled auto-merge (squash) June 13, 2026 03:16
@fercor-cisco
fercor-cisco merged commit 9fe5710 into main Jun 13, 2026
15 of 16 checks passed
@fercor-cisco
fercor-cisco deleted the HYBIM-793 branch June 13, 2026 06:05
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants