Open
Conversation
prek is a faster, Rust-native drop-in replacement for pre-commit. Changes: - Use builtin hooks for common checks (trailing-whitespace, end-of-file-fixer, check-toml, check-yaml, etc.) - Keep pre-commit-hooks repo for Python-specific checks (check-ast, debug-statements, etc.) - Update CI workflow to use j178/prek-action - Replace pre-commit dependency with prek in dev dependencies
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #168 +/- ##
=======================================
Coverage 88.49% 88.49%
=======================================
Files 22 22
Lines 2538 2538
Branches 429 429
=======================================
Hits 2246 2246
Misses 168 168
Partials 124 124 ☔ View full report in Codecov by Sentry. |
Benchmark Results Summary
Total: 82 benchmarks |
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
Replace pre-commit with prek, a faster Rust-native drop-in replacement.
Changes
pre-commit-hooksrepo for Python-specific checks without builtin equivalentsj178/prek-actionpre-commitdependency withprekin dev dependenciesBenefits
.pre-commit-config.yamlBuiltin hooks migrated
check-added-large-files,check-case-conflict,check-merge-conflictcheck-toml,check-yaml,detect-private-keyend-of-file-fixer,fix-byte-order-marker,mixed-line-ending,trailing-whitespaceHooks kept in pre-commit-hooks
check-ast,check-builtin-literals,check-docstring-firstcheck-illegal-windows-names,debug-statements,name-tests-testTest plan
prek run --all-filespasses locally