ci: migrate from pre-commit to prek#1564
Merged
georgeh0 merged 10 commits intococoindex-io:mainfrom Jan 27, 2026
Merged
Conversation
Haleshot
commented
Jan 26, 2026
Contributor
Author
There was a problem hiding this comment.
Dependabot's pre-commit ecosystem works w/ prek since both read the same .pre-commit-config.yaml format. Changed from monthly (the old autoupdate_schedule in the ci block) to weekly to match the github-actions update cadence.
Contributor
Author
There was a problem hiding this comment.
Apologies for the oversight; I thought Dependabot had a pre-commit ecosystem, but after checking the Dependabot options reference | GitHub docs (prompted by the failed CI run), turns out it doesn't.
Will remove this entry in a follow-up; for hook version updates we'd need to run prek autoupdate manually or set up a scheduled action.
Haleshot
commented
Jan 26, 2026
georgeh0
approved these changes
Jan 27, 2026
Member
georgeh0
left a comment
There was a problem hiding this comment.
Thanks for making the migration happen smoothly!
j178
pushed a commit
to j178/prek
that referenced
this pull request
Jan 28, 2026
Add [`CocoIndex`](https://github.com/cocoindex-io/cocoindex) to the list of projects using `prek`. Relevant [issue](cocoindex-io/cocoindex#1552) and [PR.](cocoindex-io/cocoindex#1564)
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.
Closes #1552
Swaps out pre-commit for prek.
prekis a single binary with no Python deps, so we can ditch thevirtualenvstuff (and all those related deps likecfgv,nodeenv,virtualenv, etc.; read the lockfile diff for reference). CI gets cleaner too since prek-action simplifies setup to a single step; no more separate cache and install steps.Also added a
Dependabotentry for thepre-commitecosystem (yes, pre-commit — Dependabot reads the same config format) for hook versions to update automatically.Everything else is just s/pre-commit/prek/ in the docs and
SKIP→PREK_SKIPin the workflows.