Skip to content

Align pre-commit ruff/shellcheck hooks with CI versions#14

Merged
christopherarter merged 1 commit into
mainfrom
chore/align-precommit-hooks-with-ci
Jun 1, 2026
Merged

Align pre-commit ruff/shellcheck hooks with CI versions#14
christopherarter merged 1 commit into
mainfrom
chore/align-precommit-hooks-with-ci

Conversation

@christopherarter

Copy link
Copy Markdown
Contributor

Re-freezes the SHA-pinned pre-commit hooks to the versions CI already runs, closing a real local/CI skew.

Background

Dependabot PRs #11 (shellcheck-py) and #12 (ruff-pre-commit) were auto-closed as "no longer updatable" — they were tag-based bumps that don't apply to the SHA-pinned .pre-commit-config.yaml. But the gap they targeted is real:

Tool pre-commit hook (before) uv.lock / CI
ruff v0.8.0 0.15.12
shellcheck-py v0.10.0.1 0.11.0.1

Local pre-commit was linting/formatting with ruff 0.8.0 while CI enforces ruff 0.15.12.

Change

Re-freeze both hooks to the commit SHAs for the versions CI uses:

  • ruff-pre-commit6fec9b7… (# frozen v0.15.12)
  • shellcheck-py745eface… (# frozen v0.11.0.1)

Verification

uv run pre-commit run {ruff,ruff-format,shellcheck} --all-files — all Passed at the new pins, no file modifications (expected: CI already runs these exact versions green against this codebase).

🤖 Generated with Claude Code

The pre-commit hooks were SHA-frozen at ruff v0.8.0 and shellcheck-py v0.10.0.1,
while CI (via uv.lock) runs ruff 0.15.12 and shellcheck-py 0.11.0.1 — so local
`pre-commit` linted/formatted with a very different ruff than CI enforced.

Dependabot's PRs #11/#12, which would have closed this gap, were auto-closed as
"no longer updatable" because they were tag-based bumps that don't apply to the
SHA-pinned config. Re-freeze both hooks to the commit SHAs for the versions CI
already uses. Verified: `pre-commit run {ruff,ruff-format,shellcheck} --all-files`
all pass at the new pins with no file changes (CI already runs these versions
green against this codebase).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@christopherarter christopherarter merged commit 635ba20 into main Jun 1, 2026
2 checks passed
@christopherarter christopherarter deleted the chore/align-precommit-hooks-with-ci branch June 1, 2026 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant