Skip to content

chore(deps): update dependency prek to v0.6.0 - #486

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

renovate[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 → 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: Enabled.

♻ Rebasing: Whenever PR becomes conflicted, 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 requested a review from looztra as a code owner December 1, 2026 23:26
@renovate
renovate Bot enabled auto-merge (squash) December 1, 2026 23:26
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.14%. Comparing base (831fc7d) to head (7b41da6).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #486   +/-   ##
=======================================
  Coverage   79.14%   79.14%           
=======================================
  Files          11       11           
  Lines         235      235           
  Branches       28       28           
=======================================
  Hits          186      186           
  Misses         45       45           
  Partials        4        4           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@renovate
renovate Bot force-pushed the renovate/prek-0.x branch from 60ed11f to 86918f8 Compare December 2, 2026 03:33
@renovate
renovate Bot force-pushed the renovate/prek-0.x branch from 86918f8 to 7b41da6 Compare December 2, 2026 04:32
@renovate
renovate Bot merged commit b8030d4 into main Dec 2, 2026
15 checks passed
@renovate
renovate Bot deleted the renovate/prek-0.x branch December 2, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants