Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 4.6.0 to 4.6.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/pre-commit/pre-commit/releases">pre-commit's releases</a>.</em></p>
<blockquote>
<h2>pre-commit v4.6.2</h2>
<h3>Fixes</h3>
<ul>
<li>Fix <code>language: node</code> hooks that contain <code>"scripts": {"build": ...}</code> with
npm 11.x.
<ul>
<li>Regressed in 4.6.1.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3737">#3737</a> issue by <a href="https://github.com/mheiges"><code>@mheiges</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3743">#3743</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
</ul>
</li>
</ul>
<h2>pre-commit v4.6.1</h2>
<h3>Fixes</h3>
<ul>
<li>Install <code>language: node</code> hooks via <code>git</code>.
<ul>
<li>Fixes npm 12.x compatibility</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3719">#3719</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3517">#3517</a> issue by <a href="https://github.com/ojob"><code>@ojob</code></a>.</li>
</ul>
</li>
<li>Set <code>JULIA_DEPOT_PATH</code> for <code>language: julia</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3711">#3711</a> PR by <a href="https://github.com/damonbayer"><code>@damonbayer</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit-ci/runner-image/issues/335">pre-commit-ci/runner-image#335</a> issue by <a href="https://github.com/damonbayer"><code>@damonbayer</code></a>.</li>
</ul>
</li>
<li>Produce error on mistyped <code>--repo</code> for <code>pre-commit autoupdate</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3701">#3701</a> PR by <a href="https://github.com/mxr"><code>@mxr</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3695">#3695</a> issue by <a href="https://github.com/mxr"><code>@mxr</code></a>.</li>
</ul>
</li>
<li>Improve performance of commit existence check in <code>pre-push</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3726">#3726</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3604">#3604</a> issue by <a href="https://github.com/ptarjan"><code>@ptarjan</code></a>.</li>
</ul>
</li>
<li>Avoid duplicating conflicted filenames during <code>pre-commit run --all-files</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3727">#3727</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3706">#3706</a> issue by <a href="https://github.com/RomanValov"><code>@RomanValov</code></a>.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md">pre-commit's changelog</a>.</em></p>
<blockquote>
<h1>4.6.2 - 2026-08-10</h1>
<h3>Fixes</h3>
<ul>
<li>Fix <code>language: node</code> hooks that contain <code>"scripts": {"build": ...}</code> with
npm 11.x.
<ul>
<li>Regressed in 4.6.1.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3737">#3737</a> issue by <a href="https://github.com/mheiges"><code>@mheiges</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3743">#3743</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
</ul>
</li>
</ul>
<h1>4.6.1 - 2026-07-21</h1>
<h3>Fixes</h3>
<ul>
<li>Install <code>language: node</code> hooks via <code>git</code>.
<ul>
<li>Fixes npm 12.x compatibility</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3719">#3719</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3517">#3517</a> issue by <a href="https://github.com/ojob"><code>@ojob</code></a>.</li>
</ul>
</li>
<li>Set <code>JULIA_DEPOT_PATH</code> for <code>language: julia</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3711">#3711</a> PR by <a href="https://github.com/damonbayer"><code>@damonbayer</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit-ci/runner-image/issues/335">pre-commit-ci/runner-image#335</a> issue by <a href="https://github.com/damonbayer"><code>@damonbayer</code></a>.</li>
</ul>
</li>
<li>Produce error on mistyped <code>--repo</code> for <code>pre-commit autoupdate</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3701">#3701</a> PR by <a href="https://github.com/mxr"><code>@mxr</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3695">#3695</a> issue by <a href="https://github.com/mxr"><code>@mxr</code></a>.</li>
</ul>
</li>
<li>Improve performance of commit existence check in <code>pre-push</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3726">#3726</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3604">#3604</a> issue by <a href="https://github.com/ptarjan"><code>@ptarjan</code></a>.</li>
</ul>
</li>
<li>Avoid duplicating conflicted filenames during <code>pre-commit run --all-files</code>.
<ul>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3727">#3727</a> PR by <a href="https://github.com/asottile"><code>@asottile</code></a>.</li>
<li><a href="https://redirect.github.com/pre-commit/pre-commit/issues/3706">#3706</a> issue by <a href="https://github.com/RomanValov"><code>@RomanValov</code></a>.</li>
</ul>
</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/pre-commit/pre-commit/commit/9767b6c8211a6bf683875a0afcf2b390457a4b66"><code>9767b6c</code></a> v4.6.2</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/42ee3ff5ac1cae639613c9ad002d0502ae82384f"><code>42ee3ff</code></a> Merge pull request <a href="https://redirect.github.com/pre-commit/pre-commit/issues/3743">#3743</a> from pre-commit/npm-build-scripts-11-x</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/30566198cb2d05201625f92b660a34c38ffe2dc7"><code>3056619</code></a> fix <code>language: node</code> for hooks with build scripts and npm 11.x</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/242ce8a25657be59f2770b50de41fe0fd508820d"><code>242ce8a</code></a> v4.6.1</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/766e550cd31defcb6096a96735c9de299b0eb301"><code>766e550</code></a> Merge pull request <a href="https://redirect.github.com/pre-commit/pre-commit/issues/3727">#3727</a> from pre-commit/dedupe</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/1558d06e3d9e5f495cd97ccaefe937b7c44ead70"><code>1558d06</code></a> Merge pull request <a href="https://redirect.github.com/pre-commit/pre-commit/issues/3726">#3726</a> from pre-commit/exists-faster</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/8a1c47a2528419e41aadfcf8135926d68f7ffbbb"><code>8a1c47a</code></a> avoid duplicate files in --all-files during conflict</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/2e01c999b2466ac7e14e1e4a57a04504bd6c1b28"><code>2e01c99</code></a> faster check of rev existing locally as a commit</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/3613bf27f5500d327de70cd2fa68fa20c8975659"><code>3613bf2</code></a> Merge pull request <a href="https://redirect.github.com/pre-commit/pre-commit/issues/3701">#3701</a> from pre-commit/autoupdate-repos</li>
<li><a href="https://github.com/pre-commit/pre-commit/commit/1d811d9b0b655fa648001ca479a0b7da9ebd7b8c"><code>1d811d9</code></a> Return an error for invalid --repo</li>
<li>Additional commits viewable in <a href="https://github.com/pre-commit/pre-commit/compare/v4.6.0...v4.6.2">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
</details>
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bumps pre-commit from 4.6.0 to 4.6.2.
Release notes
Sourced from pre-commit's releases.
Changelog
Sourced from pre-commit's changelog.
Commits
9767b6cv4.6.242ee3ffMerge pull request #3743 from pre-commit/npm-build-scripts-11-x3056619fixlanguage: nodefor hooks with build scripts and npm 11.x242ce8av4.6.1766e550Merge pull request #3727 from pre-commit/dedupe1558d06Merge pull request #3726 from pre-commit/exists-faster8a1c47aavoid duplicate files in --all-files during conflict2e01c99faster check of rev existing locally as a commit3613bf2Merge pull request #3701 from pre-commit/autoupdate-repos1d811d9Return an error for invalid --repoDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.