prek 0.3.2#266179
Merged
Merged
Conversation
cho-m
approved these changes
Feb 6, 2026
Contributor
|
🤖 An automated task has requested bottles to be published to this PR. Caution Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch. |
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.
Created by
brew bumpCreated with
brew bump-formula-pr.Details
release notes
prek.tomlis here!You can now use
prek.tomlas an alternative to.pre-commit-config.yamlfor configuring prek.prek.tomlmirrors the structure of.pre-commit-config.yaml, but TOML is less error-prone. Your existing.pre-commit-config.yamlwill continue to work, but for new users and new projects,prek.tomlmay make more sense. If you want to switch, runprek util yaml-to-tomlto convert YAML configs toprek.toml. See configuration docs for details.For example, this config:
Can be written as
prek.tomllike this:serde-yamlhas been replaced withserde-saphyrWe replaced the long-deprecated
serde-yamlcrate withserde-saphyrfor YAML parsing. It is written in safe Rust and has better error messages, performance, and security. This lets us provide precise location information for configuration parsing errors, which should make it easier to fix config issues.For example, this invalid config:
Before:
Now:
prek utilsubcommandsWe added a new
prek utiltop-level command for miscellaneous utilities that don't fit into other categories. The first two utilities are:prek util identify: shows the identification tags of files that prek uses for file filtering, which can be useful for debugging and writingtypes/types_or/exclude_typesfilters.prek util yaml-to-toml: converts.pre-commit-config.yamltoprek.toml.We also moved
prek init-template-dirunderprek utilfor better organization. The oldprek init-template-dircommand is still available (hidden) as an alias for backward compatibility.Enhancements
prek util identifysubcommand (#1554)prek util yaml-to-tomlto convert.pre-commit-config.yamltoprek.toml(#1584)serialize_yaml_scalarusingserde-saphyr(#1534)identifyandinit-template-dirunder theprek utiltop-level command (#1574)Julialanguage (#1519)prek.toml(#1271)PREK_QUIETenvironment variable support (#1513)Bug fixes
Documentation
OpenClawto the list of users (#1517)cachix/devenv,apache/lucene,copper-project/copper-rsas projects using prek (#1531, #1514, #1569)llms.txtgeneration for LLM-friendly documentation (#1553)--refreshto pick up.prekignorechanges (#1575)prek.toml(#1576)Other changes
prek.tomlin run hint for config filename (#1578)Contributors
Install prek 0.3.2
Install prebuilt binaries via shell script
Install prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/j178/prek/releases/download/v0.3.2/prek-installer.ps1 | iex"Install prebuilt binaries via Homebrew
Install prebuilt binaries into your npm project
Download prek 0.3.2
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:
You can also download the attestation from GitHub and verify against that directly:
View the full release notes at https://github.com/j178/prek/releases/tag/v0.3.2.