Repository navigation
Update dependency prek to v0.6.0 - #47
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Approved: no adaptation is required under the configured project policy.
PR #47 only updates the local-development prek pin from 0.5.12 to 0.6.0 in mise.toml. The recorded target is the merge base, and the PR integrates cleanly. The existing recipes and local hook need no adaptation. just check and the prek hook smoke tests passed on the candidate.
Agent-assessed risk: Low. The pin affects local development hooks, with compatibility risk concentrated in developers' custom prek CLI arguments or inherited CA settings.
Evidence (6 items)
- Local check:
git merge-base HEAD refs/artidezi/inputs/source-pr; git diff 817c16af4c50d023d513c9680f639d2aea18dd45...refs/artidezi/inputs/source-pr; git merge-tree --write-tree HEAD refs/artidezi/inputs/source-pr; git diff --check 817c16af4c50d023d513c9680f639d2aea18dd45...refs/artidezi/inputs/source-pr— The merge base is the recorded target. The three-dot diff contains only the mise.toml pin. The conflict-free merge tree matches source commit 61e1233, and the whitespace check passed. - Release notes: source — Explicit hook names combined with a mismatching stage and update requests with an unknown --repo now fail to align with pre-commit. Nonempty SSL_CERT_FILE or SSL_CERT_DIR now replaces default trust roots for prek HTTPS, so private CA bundles must include any required public roots.
- Local check:
git grep on the candidate tree and inspection of justfile and .pre-commit-config.yaml— The default run recipes select staged or all files without naming hooks or stages, and the sole configured hook is a local system command for release-script tests. No tracked prek caller supplies an update --repo filter or configures the affected CA variables. The apparent prek references in forge tests are fixture check names. - Local check:
just check— Passed in a disposable Git checkout whose tree matched the conflict-free merge result. Formatting, Clippy, workspace Rust tests, 49 release-script tests and REUSE passed. No Forgejo integration run was needed for this tooling-only change. - Local check:
just prek --version; just prek-install-git-pre-commit-hook; just prek-run-on-all; git hook run pre-commit— Mise installed prek 0.6.0, and the generated hook used the project-local mise shim. The all-files run passed Release Script Tests. Git invoked the installed hook successfully and skipped the test with no staged files. These checks cover the repository's local hook and default environment. - Upstream diff: source — Remaining upstream deprecation applies only to external users of PREK_NATIVE_TLS. It is still an alias in 0.6.0, with no removal date stated. For system trust, unset SSL_CERT_FILE and SSL_CERT_DIR and set PREK_SYSTEM_CERTS=true.
Assessed source 61e1233d8817e9bee89de44eb473d6f9abc8178f.
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.
This PR contains the following updates:
0.5.12→0.6.0Release Notes
j178/prek (prek)
v0.6.0Compare Source
Released on 2026-12-01.
Breaking changes
Most users can upgrade to 0.6 without changing their configuration or scripts.
The two CLI changes below align prek's exit codes with
pre-commit.--hook-stagetoprek run, it now exits with status1when none of those hooks matches the requested stage. To run every hook configured for a stage, omit the hook names. (#3105)prek updateandprek autoupdatenow validate every--repoargument before updating any revisions. A single unknown repository makes the command exit with status1. Use therepovalue as written in your config. (#3106)SSL_CERT_FILEorSSL_CERT_DIRis non-empty, prek's HTTP client (reqwest) trusts only the CA certificates loaded from those paths, even if it finds none. If you used these variables to add a private CA, include the public roots you need in the same trust bundle. To use the system trust store, unset both variables and setPREK_SYSTEM_CERTS=true.PREK_NATIVE_TLSremains a deprecated alias. (#2964)Highlights
Faster repeat checks with
prek updateprek updatenow reuses Git objects from earlier checks while still looking fornew upstream tags. In our GitHub benchmark, repeat runs of
prek update --checktook 62–74% less time with a warm cache. Median time fell from 2.20 s to 0.84 s
for
pre-commit/pre-commit-hooksand from 3.04 s to 0.80 s forcrate-ci/typos. (#3080)Configure hooks in
pyproject.tomlorCargo.tomlKeep your hooks in the manifest you already use. Put the same settings you would
use in
prek.tomlunder[tool.prek]inpyproject.toml, or under[package.metadata.prek]or[workspace.metadata.prek]inCargo.toml.A standalone hook configuration in the same directory still takes precedence. (#3093)
Include formatter fixes in the same commit
Set
stage_fixed = trueon a formatter to let the installed Gitpre-commithook include verified fixes to matching staged files in the same commit. This
saves a second round of
git addandgit commit. Manualprek runinvocationsstill leave fixes in the working tree for review. (#3085)
Enhancements
{config_dir}in hook entries and arguments (#3089)Performance
Contributors
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.