Release Notes
Released on 2026-10-05.
Enhancements
Performance
- Avoid JSON imports when querying Python interpreters (#2790)
- Avoid duplicate diffs after hooks rewrite files (#2815)
- Batch file reads in shebang checks (#2793)
- Check cached hook environments concurrently (#2797)
- Overlap Git discovery with worktree status checks (#2821)
- Query staged additions only for case conflicts (#2802)
- Reduce worker overhead in XML and pygrep checks (#2789)
- Reuse Git worktree state during hook startup (#2787)
- Reuse intent-to-add paths when saving unstaged changes (#2788)
- Run Git queries concurrently for case-conflict checks (#2792)
- Share Bun and Deno version queries across environments (#2795)
- Share Lua runtime probes across hook environments (#2796)
- Share Ruby version queries across hook environments (#2794)
- Share mise version queries across hook environments (#2798)
- Skip site initialization in Python interpreter probes (#2822)
- Skip untracked files in destroyed symlink checks (#2799)
- Skip unused file input for always-run hooks (#2813)
Bug fixes
- Preserve staged and unstaged changes on conflicted stash restore (#2803)
- Default missing
core.fileModein shebang checks (#2832) - Match protected branch patterns from the start (#2829)
- Normalize explicit paths in shebang index checks (#2831)
- Preserve empty
trailing-whitespacecharacter sets (#2830) - Reject empty files in
check-json(#2826) - Reject trailing data in
check-json(#2828) - Round up file sizes in
check-added-large-files(#2827)
Documentation
- Redesign the prek badge and refresh logo details (#2818)
Contributors
Install prek 0.5.5
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.5.5/prek-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/j178/prek/releases/download/v0.5.5/prek-installer.ps1 | iex"Install prebuilt binaries via Homebrew
brew install prekDownload prek 0.5.5
| File | Platform | Checksum |
|---|---|---|
| prek-aarch64-apple-darwin.tar.gz | Apple Silicon macOS | checksum |
| prek-x86_64-apple-darwin.tar.gz | Intel macOS | checksum |
| prek-aarch64-pc-windows-msvc.zip | ARM64 Windows | checksum |
| prek-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| prek-aarch64-unknown-linux-gnu.tar.gz | ARM64 Linux | checksum |
| prek-powerpc64le-unknown-linux-gnu.tar.gz | PPC64LE Linux | checksum |
| prek-x86_64-unknown-linux-gnu.tar.gz | x64 Linux | checksum |
| prek-aarch64-unknown-linux-musl.tar.gz | ARM64 MUSL Linux | checksum |
| prek-x86_64-unknown-linux-musl.tar.gz | x64 MUSL Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo j178/prekYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>