Repository navigation
Update dependency prek to v0.6.0 - #103
Conversation
There was a problem hiding this comment.
Approved: no adaptation is required under the configured project policy.
Approve PR #103 as-is. It updates the mise-managed developer hook tool from prek 0.5.12 to 0.6.0 and merges cleanly into the recorded target. The staged-file and all-files built-in checks passed in isolation, and a Git hook installed under 0.5.12 picked up 0.6.0 through the mise shim. The supplied PHP and frontend CI checks passed, and the local assessment focused on prek.
Remaining deprecation: PREK_NATIVE_TLS is a developer-environment alias with no removal date stated in the release notes. For system trust, unset SSL_CERT_FILE and SSL_CERT_DIR and use PREK_SYSTEM_CERTS=true.
Agent-assessed risk: Low. The change is confined to developer hooks, with custom CLI flags and certificate overrides relevant only to developer-specific invocations and environments.
Evidence (7 items)
- Local check:
git merge-base, git diff 535b347f6408c12305b0f9bca33c31c6b462e913...refs/artidezi/inputs/source-pr, git diff --check, and git merge-tree --write-tree— The merge base is the recorded target, and the only PR change is the prek pin in mise.toml. The diff passed whitespace validation. The clean merge tree matches the source tree 9611b589a744593f331453cfd9aad5928b7340a3. - Release notes: source — Named hooks that do not match an explicit stage and unknown repository filters now fail for pre-commit parity. Nonempty SSL_CERT_FILE or SSL_CERT_DIR replaces the default HTTP trust roots. Developers using a custom CA bundle must include any public roots they need. The release identifies PREK_SYSTEM_CERTS as the replacement for PREK_NATIVE_TLS and gives no removal date.
- Local check:
git grep on refs/artidezi/inputs/source-pr and inspection of .pre-commit-config.yaml, justfile, and docs/development.md— The tracked recipes and examples use unfiltered staged or all-files runs by default. The repository has no calls using the affected stage or repository filters, sets none of the relevant certificate variables, and configures only builtin and local hooks. - Local check:
just prek --version; just prek validate-config; just prek-install-git-pre-commit-hook; just prek-run-on-staged; .git/hooks/pre-commit— All passed in a scratch Git repository populated with the source tree. Mise resolved prek 0.6.0. The installed hook used the project mise shim. Both staged entry points passed with only mise.toml staged, so PHP, Twig and JS hooks did not apply. - Local check:
PREK_SKIP=php-analyze,php-format-check,twig-format-check,js-analyze just prek-run-on-all— All seven built-in checks passed on the indexed source files, including YAML and JSON validation. The application-specific hooks were explicitly skipped. - Local check:
just prek-install-git-pre-commit-hook at 0.5.12, then mise shim --version and env -u MISE_DATA_DIR -u MISE_TRUSTED_CONFIG_PATHS .git/hooks/pre-commit at 0.6.0— The existing hook passed on staged mise.toml after the pin changed. The shim reported 0.6.0 and sha256sum -c confirmed the installed hook file was unchanged. - Evidence:
Supplied source CI snapshot for 67b4c6c8cc8b7f96c813a3c013bc7ef402d852c8 and the Check workflow— PHP and frontend jobs report success. The workflow covers strict Composer validation, PHPStan, PHP and Twig style checks, frontend lint and type checking, and the asset build. Those checks were not rerun locally. The built-in and local hook configuration does not exercise custom HTTP trust.
Assessed source 67b4c6c8cc8b7f96c813a3c013bc7ef402d852c8.
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)
* * 1-14 */6 *)🚦 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.