Skip to content

Commit a78b4b3

Browse files
chore(deps): Update Prek to v0.4.2 (#322)
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [prek](https://redirect.github.com/j178/prek) | patch | `0.4.1` → `0.4.2` | --- ### Release Notes <details> <summary>j178/prek (prek)</summary> ### [`v0.4.2`](https://redirect.github.com/j178/prek/blob/HEAD/CHANGELOG.md#042) [Compare Source](https://redirect.github.com/j178/prek/compare/v0.4.1...v0.4.2) Released on 2026-05-26. ##### Highlights 0.4.2 is mainly about making `prek run` faster in large repos. `prek` now does less `git diff` work. After hooks run, `prek` uses diff checks to detect files changed by hooks. If a hook modifies files, prek marks that hook as failed. That is important, but full diff snapshots can be slow in big repos, especially when they happen after every hook group. We skip the expensive diff path in two common cases: built-in hooks that prek knows are read-only, and clean worktrees where a cheap dirty check is enough unless a hook actually changes files. In the right large-repo workload, skipping that work can make runs up to 10x faster. Workspace mode is faster too. Hooks have historically been too serial. Priority-based concurrency helped, but it required users to choose good `priority` values. Now sibling projects at the same workspace depth run in parallel automatically. Their files do not overlap, so this is safe and needs no extra config. For multi-project workspaces, this can dramatically reduce total hook time. ##### Sponsorship If `prek` saves time for you or your team, please consider sponsoring the project on [GitHub Sponsors](https://redirect.github.com/sponsors/j178). It helps keep new features, performance work, and maintenance moving. ##### Enhancements - Run same-depth projects concurrently ([#&#8203;2110](https://redirect.github.com/j178/prek/pull/2110)) - Make rustup install profile configurable ([#&#8203;2111](https://redirect.github.com/j178/prek/pull/2111)) - Simplify hook progress folding ([#&#8203;2125](https://redirect.github.com/j178/prek/pull/2125)) ##### Performance - Optimize diff checks for clean worktrees ([#&#8203;2109](https://redirect.github.com/j178/prek/pull/2109)) - Skip diff checks for read-only hooks ([#&#8203;2108](https://redirect.github.com/j178/prek/pull/2108)) ##### Contributors - [@&#8203;j178](https://redirect.github.com/j178) - [@&#8203;Carlomus](https://redirect.github.com/Carlomus) </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/anstyle). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xOTQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5NC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 72227f1 commit a78b4b3

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
@@ -29,4 +29,4 @@ jobs:
2929
- name: prek
3030
uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
3131
with:
32-
prek-version: '0.4.1'
32+
prek-version: '0.4.2'

0 commit comments

Comments
 (0)