-
Notifications
You must be signed in to change notification settings - Fork 1
Replace pre-commit with prek #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
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
Replace the pre-commit hook manager with prek, a faster Rust-based alternative that's fully compatible with existing pre-commit configurations. Changes: - Updated pyproject.toml to use prek instead of pre-commit - Renamed pixi tasks from pre-commit/pre-commit-update to prek/prek-update - Updated GitHub Actions workflow to use j178/prek-action@v1 - Renamed workflow file from pre-commit.yaml to prek.yaml - Updated documentation in README.md and .claude/README.md - Updated SessionStart hook to install prek hooks - Updated dependabot.yml to track prek instead of pre-commit The .pre-commit-config.yaml file remains unchanged as prek uses the same configuration format.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideReplaces the Python-based pre-commit hook runner with the Rust-based prek across tooling, automation, and docs while keeping the existing .pre-commit-config.yaml configuration format unchanged. Flow diagram for updated pixi tasks using prekflowchart TD
subgraph PixiTasks
UpdateLock[update-lock]
Format[format]
RuffLint[ruff-lint]
Prek[prek]
Fix[fix]
end
Fix -->|depends-on| UpdateLock
Fix -->|depends-on| Format
Fix -->|depends-on| RuffLint
Fix -->|depends-on| Prek
UpdateLock -->|updates| PixiLock[pixi.lock]
Format -->|runs| RuffFormat[ruff format .]
RuffLint -->|runs| RuffCheck[ruff check . --fix]
Prek -->|runs| PrekRunAll[prek run -a]
PrekUpdate[prek-update] -->|runs| PrekAutoupdate[prek autoupdate]
Dev[Developer] -->|pixi run fix| Fix
Dev -->|pixi run prek| Prek
Dev -->|pixi run prek-update| PrekUpdate
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Corrected prek version from >=0.13.0 to >=0.2.28,<0.3.0 - Updated pixi.lock to replace pre-commit with prek 0.2.28 - Removed pre-commit package and its dependencies from lock file This fixes CI errors where the incorrect version constraint made the dependency resolution fail.
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.
Replace the pre-commit hook manager with prek, a faster Rust-based
alternative that's fully compatible with existing pre-commit configurations.
Changes:
The .pre-commit-config.yaml file remains unchanged as prek uses the
same configuration format.
Summary by Sourcery
Replace the project’s pre-commit hook integration with the compatible, Rust-based prek tool across local tooling, automation, and documentation.
Enhancements: