From a52cd8ac45cac2f1600c6ba54e38049454e04184 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 23:53:14 +0000 Subject: [PATCH] chore(deps): Update Prek to v0.4.11 (#86) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR contains the following updates: | Package | Update | Change | |---|---|---| | [prek](https://redirect.github.com/j178/prek) | patch | `0.4.10` → `0.4.11` | --- ### Release Notes
j178/prek (prek) ### [`v0.4.11`](https://redirect.github.com/j178/prek/blob/HEAD/CHANGELOG.md#0411) [Compare Source](https://redirect.github.com/j178/prek/compare/v0.4.10...v0.4.11) Released on 2026-07-25. ##### Highlights - This release adds two new builtin hooks, `deny-pattern` and `require-pattern`, as native alternatives for `pygrep` use cases. `deny-pattern` fails when a configured pattern is found, while `require-pattern` ensures every selected file contains a match. By matching natively without spawning a Python subprocess, they run over 4x faster than `pygrep` in benchmarks. Note that they use [Rust `regex` syntax](https://docs.rs/regex/latest/regex/#syntax), which does not support look-around features such as negative lookbehind. - `prek run` now supports `--glob ` to run hooks on tracked files matching a glob. It can be repeated or combined with `--files` and `--directory`. - Hook priorities now support reusable aliases: ```toml [priorities] checks = 10 [[repos]] repo = "builtin" hooks = [ { id = "check-json", priority = "checks" }, { id = "check-yaml", priority = "checks" }, ] ``` This makes parallel scheduling easier to read and maintain. ##### Enhancements - Add `deny-pattern` and `require-pattern` builtin hooks ([#​2359](https://redirect.github.com/j178/prek/pull/2359)) - Support `--glob` patterns in `prek run` ([#​2381](https://redirect.github.com/j178/prek/pull/2381)) - Support reusable aliases for hook priorities ([#​2331](https://redirect.github.com/j178/prek/pull/2331)) - Implement `requirements-txt-fixer` as a builtin hook ([#​2390](https://redirect.github.com/j178/prek/pull/2390)) - Improve user-facing warnings and errors ([#​2380](https://redirect.github.com/j178/prek/pull/2380)) - Install Node hooks through git url ([#​2394](https://redirect.github.com/j178/prek/pull/2394)) ##### Performance - Reduce blocking-pool overhead in file hooks ([#​2384](https://redirect.github.com/j178/prek/pull/2384)) - Speed up mixed-line-ending scans with memchr2 ([#​2391](https://redirect.github.com/j178/prek/pull/2391)) ##### Bug fixes - Honor filenames in builtin hook entry and args ([#​2389](https://redirect.github.com/j178/prek/pull/2389)) - Match identify tags across filename parts ([#​2399](https://redirect.github.com/j178/prek/pull/2399)) - Preserve hook output order with a shared pipe ([#​2385](https://redirect.github.com/j178/prek/pull/2385)) - Preserve system download policy when applying metadata ([#​2395](https://redirect.github.com/j178/prek/pull/2395)) ##### Contributors - [@​j178](https://redirect.github.com/j178) - [@​chrisoro](https://redirect.github.com/chrisoro)
--- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - Every minute (`* * * * *`) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **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](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/epage/_rust). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- .github/workflows/pre-commit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 0e72febd..97a74e9c 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -29,4 +29,4 @@ jobs: - name: prek uses: j178/prek-action@e98a699c41eb69ab013a45817a0406469a748f8d # v2.0.5 with: - prek-version: '0.4.10' + prek-version: '0.4.11'