Skip to content

Commit e1f5781

Browse files
chore(deps): Update Prek to v0.4.11 (#110)
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 <details> <summary>j178/prek (prek)</summary> ### [`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 <PATTERN>` 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 ([#&#8203;2359](https://redirect.github.com/j178/prek/pull/2359)) - Support `--glob` patterns in `prek run` ([#&#8203;2381](https://redirect.github.com/j178/prek/pull/2381)) - Support reusable aliases for hook priorities ([#&#8203;2331](https://redirect.github.com/j178/prek/pull/2331)) - Implement `requirements-txt-fixer` as a builtin hook ([#&#8203;2390](https://redirect.github.com/j178/prek/pull/2390)) - Improve user-facing warnings and errors ([#&#8203;2380](https://redirect.github.com/j178/prek/pull/2380)) - Install Node hooks through git url ([#&#8203;2394](https://redirect.github.com/j178/prek/pull/2394)) ##### Performance - Reduce blocking-pool overhead in file hooks ([#&#8203;2384](https://redirect.github.com/j178/prek/pull/2384)) - Speed up mixed-line-ending scans with memchr2 ([#&#8203;2391](https://redirect.github.com/j178/prek/pull/2391)) ##### Bug fixes - Honor filenames in builtin hook entry and args ([#&#8203;2389](https://redirect.github.com/j178/prek/pull/2389)) - Match identify tags across filename parts ([#&#8203;2399](https://redirect.github.com/j178/prek/pull/2399)) - Preserve hook output order with a shared pipe ([#&#8203;2385](https://redirect.github.com/j178/prek/pull/2385)) - Preserve system download policy when applying metadata ([#&#8203;2395](https://redirect.github.com/j178/prek/pull/2395)) ##### Contributors - [@&#8203;j178](https://redirect.github.com/j178) - [@&#8203;chrisoro](https://redirect.github.com/chrisoro) </details> --- ### 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. --- - [ ] <!-- rebase-check -->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/rust-cli/roff-rs). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent d14f590 commit e1f5781

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
persist-credentials: false
2828
- uses: j178/prek-action@6ad80277337ad479fe43bd70701c3f7f8aa74db3 # v2
2929
with:
30-
prek-version: '0.4.10'
30+
prek-version: '0.4.11'

0 commit comments

Comments
 (0)