Skip to content

Update dependency prek to v0.6.0 - #103

Merged
artidezi-devture[bot] merged 1 commit into
masterfrom
renovate/prek-0.x
Dec 1, 2026
Merged

artidezi-devture[bot] merged 1 commit into
masterfrom
renovate/prek-0.x

Conversation

@renovate

@renovate renovate Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
prek tools minor 0.5.12 → 0.6.0

Release Notes

j178/prek (prek)

v0.6.0

Compare 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.

  • If you pass hook names and --hook-stage to prek run, it now exits with status 1 when none of those hooks matches the requested stage. To run every hook configured for a stage, omit the hook names. (#​3105)
  • prek update and prek autoupdate now validate every --repo argument before updating any revisions. A single unknown repository makes the command exit with status 1. Use the repo value as written in your config. (#​3106)
  • When SSL_CERT_FILE or SSL_CERT_DIR is 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 set PREK_SYSTEM_CERTS=true. PREK_NATIVE_TLS remains a deprecated alias. (#​2964)
Highlights
Faster repeat checks with prek update

prek update now reuses Git objects from earlier checks while still looking for
new upstream tags. In our GitHub benchmark, repeat runs of prek update --check
took 62–74% less time with a warm cache. Median time fell from 2.20 s to 0.84 s
for pre-commit/pre-commit-hooks and from 3.04 s to 0.80 s for crate-ci/typos. (#​3080)

Configure hooks in pyproject.toml or Cargo.toml

Keep your hooks in the manifest you already use. Put the same settings you would
use in prek.toml under [tool.prek] in pyproject.toml, or under
[package.metadata.prek] or [workspace.metadata.prek] in Cargo.toml.
A standalone hook configuration in the same directory still takes precedence. (#​3093)

Include formatter fixes in the same commit

Set stage_fixed = true on a formatter to let the installed Git pre-commit
hook include verified fixes to matching staged files in the same commit. This
saves a second round of git add and git commit. Manual prek run invocations
still leave fixes in the working tree for review. (#​3085)

# pyproject.toml
[[tool.prek.repos]]
repo = "builtin"
hooks = [{ id = "end-of-file-fixer", stage_fixed = true }]
Enhancements
  • Allow pre-commit hooks to stage verified fixes (#​3085)
  • Load hook configuration from pyproject.toml and Cargo.toml (#​3093)
  • Restore prebuilt packages for RISC-V Linux (#​3087)
  • Skip the full history walk for new pre-push refs (#​3035)
  • Support {config_dir} in hook entries and arguments (#​3089)
Performance
  • Extract toolchain archives with synchronous tar and ZIP readers (#​3094)
  • Keep small packs when fetching hook repositories (#​3076)
  • Read pre-push diff bases from git rev-list (#​3090)
  • Reuse Git objects across hook update checks (#​3080)
  • Reuse cached Git objects when fetching another hook revision (#​3078)
  • Reuse installed hook environments across try-repo runs (#​3082)
  • Reuse the installed hook manifest during update checks (#​3083)
  • Skip tag discovery when fetching hook repositories (#​3075)
Contributors

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • Between day 1 and 14 of the month, every 6 months (* * 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Dec 1, 2026

@artidezi-devture artidezi-devture Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@artidezi-devture
artidezi-devture Bot merged commit d2770a8 into master Dec 1, 2026
2 checks passed
@renovate
renovate Bot deleted the renovate/prek-0.x branch December 1, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants