Skip to content

Update dependency prek to v0.6.0 - #47

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

artidezi-devture[bot] merged 1 commit into
mainfrom
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
    • At any time (no schedule defined)

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

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.

@artidezi-devture
artidezi-devture Bot merged commit 36d625d into main Dec 1, 2026
5 checks passed
@renovate
renovate Bot deleted the renovate/prek-0.x branch December 1, 2026 13:26
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