You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prek is a faster drop-in replacement for pre-commit with more features. It reads the existing .pre-commit-config.yaml without changes, as suggested in #55264 (comment).
Proposal:
Switch the lint job in .github/workflows/dev.yml from pre-commit to prek.
Update the developer docs to recommend prek. Contributors can keep using pre-commit locally, since the config stays compatible.
One potentially interesting aspect to explore is whether prek would help with avoiding to install every hook even if not needed for your changes (see #46646 (comment), eg to avoid needing a local ruby install: #47937)
(note on the CI performance that pre-commit currently only takes just over 1 minute to run, so it will never be a big improvement, compared to how long many other CI jobs run)
One potentially interesting aspect to explore is whether prek would help with avoiding to install every hook even if not needed for your changes (see #46646 (comment), eg to avoid needing a local ruby install: #47937)
Yes, the need for ruby install is painful.
(note on the CI performance that pre-commit currently only takes just over 1 minute to run, so it will never be a big improvement, compared to how long many other CI jobs run)
Activity
rok commentedon Nov 18, 2026
@raulcd @kou apparently prek is a drop-in replacement for pre-commit and might improve our CI performance.
[-][Dev] Use prek instead of pre-commit[/-][+][CI][Dev] Use prek instead of pre-commit[/+]jorisvandenbossche commentedon Nov 18, 2026
One potentially interesting aspect to explore is whether prek would help with avoiding to install every hook even if not needed for your changes (see #46646 (comment), eg to avoid needing a local ruby install: #47937)
(note on the CI performance that pre-commit currently only takes just over 1 minute to run, so it will never be a big improvement, compared to how long many other CI jobs run)
rok commentedon Nov 18, 2026
Yes, the need for ruby install is painful.
Fair enough!
kou commentedon Nov 18, 2026
Let's try prek!