Conversation
Update the project to use prek instead of pre-commit for managing git hooks. Prek is a faster Rust-based alternative to pre-commit that maintains compatibility with the same hook ecosystem.
Prek's docs use the hyphenated form; the unhyphenated `autoupdate` remains accepted for pre-commit compatibility but the new flags (`--cooldown-days`, `--check`) are documented only on `auto-update`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The native prek action runs `prek run --all-files` directly, avoiding the pre-commit/action wrapper now that the project has migrated to prek. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
`-j` defaults to `0` in prek (auto-detect cpu count) so it can be omitted. The `mutable reference` grep filter targeted a pre-commit-only warning that prek does not emit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
pre-commitforprek, a Rust-based drop-in replacement, in dev deps and alljustrecipes.prek auto-update(hyphenated) command name; the oldautoupdatealias still works but new flags (--cooldown-days,--check) are documented only on the hyphenated form.pre-commit/actionwithj178/prek-action@v2(SHA-pinned) in CI.-jflag and theappears to be a mutable referencegrep filter fromdeps-update: prek defaults--jobsto 0 (auto-detect cpu count) and does not emit the pre-commit-only warning the filter targeted.Test plan
just deps-updatesucceeds and updates the rendered.pre-commit-config.yamljust lintpasses locally withprek run --all-filesprekjob runsprek run --all-filesand passesjust initand confirmprek install --install-hooksruns🤖 Generated with Claude Code