Changelog
### 3.3.2
```
==================
Fixes
- Work around `r` on windows sometimes double-un-quoting arguments.
- 2885 PR by lorenzwalthert.
- 2870 issue by lorenzwalthert.
```
### 3.3.1
```
==================
Fixes
- Work around `git` partial clone bug for `autoupdate` on windows.
- 2866 PR by asottile.
- 2865 issue by adehad.
```
### 3.3.0
```
==================
Features
- Upgrade ruby-build.
- 2846 PR by jalessio.
- Use blobless clone for faster autoupdate.
- 2859 PR by asottile.
- Add `-j` / `--jobs` argument to `autoupdate` for parallel execution.
- 2863 PR by asottile.
- issue by gaborbernat.
```
### 3.2.2
```
==================
Fixes
- Fix support for swift >= 5.8.
- 2836 PR by edelabar.
- 2835 issue by kgrobelny-intive.
```
### 3.2.1
```
==================
Fixes
- Fix `language_version` for `language: rust` without global `rustup`.
- 2823 issue by daschuer.
- 2827 PR by asottile.
```
### 3.2.0
```
==================
Features
- Allow `pre-commit`, `pre-push`, and `pre-merge-commit` as `stages`.
- 2732 issue by asottile.
- 2808 PR by asottile.
- Add `pre-rebase` hook support.
- 2582 issue by BrutalSimplicity.
- 2725 PR by mgaligniana.
Fixes
- Remove bulky cargo cache from `language: rust` installs.
- 2820 PR by asottile.
```
### 3.1.1
```
==================
Fixes
- Fix `rust` with `language_version` and a non-writable host `RUSTUP_HOME`.
- pre-commit-ci/issues173 by Swiftb0y.
- 2788 by asottile.
```
### 3.1.0
```
==================
Fixes
- Fix `dotnet` for `.sln`-based hooks for dotnet>=7.0.200.
- 2763 PR by m-rsha.
- Prevent stashing when `diff` fails to execute.
- 2774 PR by asottile.
- 2773 issue by strubbly.
- Dependencies are no longer sorted in repository key.
- 2776 PR by asottile.
Updating
- Deprecate `language: python_venv`. Use `language: python` instead.
- 2746 PR by asottile.
- 2734 issue by asottile.
```
### 3.0.4
```
==================
Fixes
- Fix hook diff detection for files affected by `--textconv`.
- 2743 PR by adamchainz.
- 2743 issue by adamchainz.
```
### 3.0.3
```
==================
Fixes
- Revert "Prevent local `Gemfile` from interfering with hook execution.".
- 2739 issue by Roguelazer.
- 2740 PR by asottile.
```
### 3.0.2
```
==================
Fixes
- Prevent local `Gemfile` from interfering with hook execution.
- 2727 PR by asottile.
- Fix `language: r`, `repo: local` hooks
- pre-commit-ci/issues107 by lorenzwalthert.
- 2728 PR by asottile.
```
### 3.0.1
```
==================
Fixes
- Ensure coursier hooks are available offline after install.
- 2723 PR by asottile.
```
### 3.0.0
```
==================
Features
- Make `language: golang` bootstrap `go` if not present.
- 2651 PR by taoufik07.
- 2649 issue by taoufik07.
- `language: coursier` now supports `additional_dependencies` and `repo: local`
- 2702 PR by asottile.
- Upgrade `ruby-build` to `20221225`.
- 2718 PR by jalessio.
Fixes
- Improve error message for invalid yaml for `pre-commit autoupdate`.
- 2686 PR by asottile.
- 2685 issue by CarstenGrohmann.
- `repo: local` no longer provisions an empty `git` repo.
- 2699 PR by asottile.
Updating
- Drop support for python<3.8
- 2655 PR by asottile.
- Drop support for top-level list, use `pre-commit migrate-config` to update.
- 2656 PR by asottile.
- Drop support for `sha` to specify revision, use `pre-commit migrate-config`
to update.
- 2657 PR by asottile.
- Remove `pre-commit-validate-config` and `pre-commit-validate-manifest`, use
`pre-commit validate-config` and `pre-commit validate-manifest` instead.
- 2658 PR by asottile.
- `language: golang` hooks must use `go.mod` to specify dependencies
- 2672 PR by taoufik07.
```
### 2.21.0
```
===================
Features
- Require new-enough virtualenv to prevent 3.10 breakage
- 2467 PR by asottile.
- Respect aliases with `SKIP` for environment install.
- 2480 PR by kmARC.
- 2478 issue by kmARC.
- Allow `pre-commit run --files` against unmerged paths.
- 2484 PR by asottile.
- Also apply regex warnings to `repo: local` hooks.
- 2524 PR by chrisRedwine.
- 2521 issue by asottile.
- `rust` is now a "first class" language -- supporting `language_version` and
installation when not present.
- 2534 PR by Holzhaus.
- `r` now uses more-reliable binary installation.
- 2460 PR by lorenzwalthert.
- `GIT_ALLOW_PROTOCOL` is now passed through for git operations.
- 2555 PR by asottile.
- `GIT_ASKPASS` is now passed through for git operations.
- 2564 PR by mattp-.
- Remove `toml` dependency by using `cargo add` directly.
- 2568 PR by m-rsha.
- Support `dotnet` hooks which have dotted prefixes.
- 2641 PR by rkm.
- 2629 issue by rkm.
Fixes
- Properly adjust `--commit-msg-filename` if run from a sub directory.
- 2459 PR by asottile.
- Simplify `--intent-to-add` detection by using `git diff`.
- 2580 PR by m-rsha.
- Fix `R.exe` selection on windows.
- 2605 PR by lorenzwalthert.
- 2599 issue by SInginc.
- Skip default `nuget` source when installing `dotnet` packages.
- 2642 PR by rkm.
```
### 2.20.0
```
===================
Features
- Expose `source` and `object-name` (positional args) of `prepare-commit-msg`
hook as `PRE_COMMIT_COMIT_MSG_SOURCE` and `PRE_COMMIT_COMMIT_OBJECT_NAME`.
- 2407 PR by M-Whitaker.
- 2406 issue by M-Whitaker.
Fixes
- Fix `language: ruby` installs when `--user-install` is set in gemrc.
- 2394 PR by narpfel.
- 2393 issue by narpfel.
- Adjust pty setup for solaris.
- 2390 PR by gaige.
- 2389 issue by gaige.
- Remove unused `--config` option from `gc`, `sample-config`,
`validate-config`, `validate-manifest` sub-commands.
- 2429 PR by asottile.
```
### 2.19.0
```
===================
Features
- Allow multiple outputs from `language: dotnet` hooks.
- 2332 PR by WallucePinkham.
- Add more information to `healthy()` failure.
- 2348 PR by asottile.
- Upgrade ruby-build.
- 2342 PR by jalessio.
- Add `pre-commit validate-config` / `pre-commit validate-manifest` and
deprecate `pre-commit-validate-config` and `pre-commit-validate-manifest`.
- 2362 PR by asottile.
Fixes
- Fix `pre-push` when pushed ref contains spaces.
- 2345 PR by wwade.
- 2344 issue by wwade.
Updating
- Change `pre-commit-validate-config` / `pre-commit-validate-manifest` to
`pre-commit validate-config` / `pre-commit validate-manifest`.
- 2362 PR by asottile.
```
### 2.18.1
```
===================
Fixes
- Fix regression for `repo: local` hooks running `python<3.7`
- 2324 PR by asottile.
```
### 2.18.0
```
===================
Features
- Keep `GIT_HTTP_PROXY_AUTHMETHOD` in git environ.
- 2272 PR by VincentBerthier.
- 2271 issue by VincentBerthier.
- Support both `cs` and `coursier` executables for coursier hooks.
- 2293 PR by Holzhaus.
- Include more information in errors for `language_version` /
`additional_dependencies` for languages which do not support them.
- 2315 PR by asottile.
- Have autoupdate preferentially pick tags which look like versions when
there are multiple equivalent tags.
- 2312 PR by mblayman.
- 2311 issue by mblayman.
- Upgrade `ruby-build`.
- 2319 PR by jalessio.
- Add top level `default_install_hook_types` which will be installed when
`--hook-types` is not specified in `pre-commit install`.
- 2322 PR by asottile.
Fixes
- Fix typo in help message for `--from-ref` and `--to-ref`.
- 2266 PR by leetrout.
- Prioritize binary builds for R dependencies.
- 2277 PR by lorenzwalthert.
- Fix handling of git worktrees.
- 2252 PR by daschuer.
- Fix handling of `$R_HOME` for R hooks.
- 2301 PR by jeff-m-sullivan.
- 2300 issue by jeff-m-sullivan.
- Fix a rare race condition in change stashing.
- 2323 PR by asottile.
- 2287 issue by ian-h-chamberlain.
Updating
- Remove python3.6 support. Note that pre-commit still supports running hooks
written in older versions, but pre-commit itself requires python 3.7+.
- 2215 PR by asottile.
- pre-commit has migrated from the `master` branch to `main`.
- 2302 PR by asottile.
```
Links
- PyPI: https://pypi.org/project/pre-commit
- Changelog: https://pyup.io/changelogs/pre-commit/
- Repo: https://github.com/pre-commit/pre-commit
This PR updates pre-commit from 2.17.0 to 3.3.2.
Changelog
### 3.3.2 ``` ================== Fixes - Work around `r` on windows sometimes double-un-quoting arguments. - 2885 PR by lorenzwalthert. - 2870 issue by lorenzwalthert. ``` ### 3.3.1 ``` ================== Fixes - Work around `git` partial clone bug for `autoupdate` on windows. - 2866 PR by asottile. - 2865 issue by adehad. ``` ### 3.3.0 ``` ================== Features - Upgrade ruby-build. - 2846 PR by jalessio. - Use blobless clone for faster autoupdate. - 2859 PR by asottile. - Add `-j` / `--jobs` argument to `autoupdate` for parallel execution. - 2863 PR by asottile. - issue by gaborbernat. ``` ### 3.2.2 ``` ================== Fixes - Fix support for swift >= 5.8. - 2836 PR by edelabar. - 2835 issue by kgrobelny-intive. ``` ### 3.2.1 ``` ================== Fixes - Fix `language_version` for `language: rust` without global `rustup`. - 2823 issue by daschuer. - 2827 PR by asottile. ``` ### 3.2.0 ``` ================== Features - Allow `pre-commit`, `pre-push`, and `pre-merge-commit` as `stages`. - 2732 issue by asottile. - 2808 PR by asottile. - Add `pre-rebase` hook support. - 2582 issue by BrutalSimplicity. - 2725 PR by mgaligniana. Fixes - Remove bulky cargo cache from `language: rust` installs. - 2820 PR by asottile. ``` ### 3.1.1 ``` ================== Fixes - Fix `rust` with `language_version` and a non-writable host `RUSTUP_HOME`. - pre-commit-ci/issues173 by Swiftb0y. - 2788 by asottile. ``` ### 3.1.0 ``` ================== Fixes - Fix `dotnet` for `.sln`-based hooks for dotnet>=7.0.200. - 2763 PR by m-rsha. - Prevent stashing when `diff` fails to execute. - 2774 PR by asottile. - 2773 issue by strubbly. - Dependencies are no longer sorted in repository key. - 2776 PR by asottile. Updating - Deprecate `language: python_venv`. Use `language: python` instead. - 2746 PR by asottile. - 2734 issue by asottile. ``` ### 3.0.4 ``` ================== Fixes - Fix hook diff detection for files affected by `--textconv`. - 2743 PR by adamchainz. - 2743 issue by adamchainz. ``` ### 3.0.3 ``` ================== Fixes - Revert "Prevent local `Gemfile` from interfering with hook execution.". - 2739 issue by Roguelazer. - 2740 PR by asottile. ``` ### 3.0.2 ``` ================== Fixes - Prevent local `Gemfile` from interfering with hook execution. - 2727 PR by asottile. - Fix `language: r`, `repo: local` hooks - pre-commit-ci/issues107 by lorenzwalthert. - 2728 PR by asottile. ``` ### 3.0.1 ``` ================== Fixes - Ensure coursier hooks are available offline after install. - 2723 PR by asottile. ``` ### 3.0.0 ``` ================== Features - Make `language: golang` bootstrap `go` if not present. - 2651 PR by taoufik07. - 2649 issue by taoufik07. - `language: coursier` now supports `additional_dependencies` and `repo: local` - 2702 PR by asottile. - Upgrade `ruby-build` to `20221225`. - 2718 PR by jalessio. Fixes - Improve error message for invalid yaml for `pre-commit autoupdate`. - 2686 PR by asottile. - 2685 issue by CarstenGrohmann. - `repo: local` no longer provisions an empty `git` repo. - 2699 PR by asottile. Updating - Drop support for python<3.8 - 2655 PR by asottile. - Drop support for top-level list, use `pre-commit migrate-config` to update. - 2656 PR by asottile. - Drop support for `sha` to specify revision, use `pre-commit migrate-config` to update. - 2657 PR by asottile. - Remove `pre-commit-validate-config` and `pre-commit-validate-manifest`, use `pre-commit validate-config` and `pre-commit validate-manifest` instead. - 2658 PR by asottile. - `language: golang` hooks must use `go.mod` to specify dependencies - 2672 PR by taoufik07. ``` ### 2.21.0 ``` =================== Features - Require new-enough virtualenv to prevent 3.10 breakage - 2467 PR by asottile. - Respect aliases with `SKIP` for environment install. - 2480 PR by kmARC. - 2478 issue by kmARC. - Allow `pre-commit run --files` against unmerged paths. - 2484 PR by asottile. - Also apply regex warnings to `repo: local` hooks. - 2524 PR by chrisRedwine. - 2521 issue by asottile. - `rust` is now a "first class" language -- supporting `language_version` and installation when not present. - 2534 PR by Holzhaus. - `r` now uses more-reliable binary installation. - 2460 PR by lorenzwalthert. - `GIT_ALLOW_PROTOCOL` is now passed through for git operations. - 2555 PR by asottile. - `GIT_ASKPASS` is now passed through for git operations. - 2564 PR by mattp-. - Remove `toml` dependency by using `cargo add` directly. - 2568 PR by m-rsha. - Support `dotnet` hooks which have dotted prefixes. - 2641 PR by rkm. - 2629 issue by rkm. Fixes - Properly adjust `--commit-msg-filename` if run from a sub directory. - 2459 PR by asottile. - Simplify `--intent-to-add` detection by using `git diff`. - 2580 PR by m-rsha. - Fix `R.exe` selection on windows. - 2605 PR by lorenzwalthert. - 2599 issue by SInginc. - Skip default `nuget` source when installing `dotnet` packages. - 2642 PR by rkm. ``` ### 2.20.0 ``` =================== Features - Expose `source` and `object-name` (positional args) of `prepare-commit-msg` hook as `PRE_COMMIT_COMIT_MSG_SOURCE` and `PRE_COMMIT_COMMIT_OBJECT_NAME`. - 2407 PR by M-Whitaker. - 2406 issue by M-Whitaker. Fixes - Fix `language: ruby` installs when `--user-install` is set in gemrc. - 2394 PR by narpfel. - 2393 issue by narpfel. - Adjust pty setup for solaris. - 2390 PR by gaige. - 2389 issue by gaige. - Remove unused `--config` option from `gc`, `sample-config`, `validate-config`, `validate-manifest` sub-commands. - 2429 PR by asottile. ``` ### 2.19.0 ``` =================== Features - Allow multiple outputs from `language: dotnet` hooks. - 2332 PR by WallucePinkham. - Add more information to `healthy()` failure. - 2348 PR by asottile. - Upgrade ruby-build. - 2342 PR by jalessio. - Add `pre-commit validate-config` / `pre-commit validate-manifest` and deprecate `pre-commit-validate-config` and `pre-commit-validate-manifest`. - 2362 PR by asottile. Fixes - Fix `pre-push` when pushed ref contains spaces. - 2345 PR by wwade. - 2344 issue by wwade. Updating - Change `pre-commit-validate-config` / `pre-commit-validate-manifest` to `pre-commit validate-config` / `pre-commit validate-manifest`. - 2362 PR by asottile. ``` ### 2.18.1 ``` =================== Fixes - Fix regression for `repo: local` hooks running `python<3.7` - 2324 PR by asottile. ``` ### 2.18.0 ``` =================== Features - Keep `GIT_HTTP_PROXY_AUTHMETHOD` in git environ. - 2272 PR by VincentBerthier. - 2271 issue by VincentBerthier. - Support both `cs` and `coursier` executables for coursier hooks. - 2293 PR by Holzhaus. - Include more information in errors for `language_version` / `additional_dependencies` for languages which do not support them. - 2315 PR by asottile. - Have autoupdate preferentially pick tags which look like versions when there are multiple equivalent tags. - 2312 PR by mblayman. - 2311 issue by mblayman. - Upgrade `ruby-build`. - 2319 PR by jalessio. - Add top level `default_install_hook_types` which will be installed when `--hook-types` is not specified in `pre-commit install`. - 2322 PR by asottile. Fixes - Fix typo in help message for `--from-ref` and `--to-ref`. - 2266 PR by leetrout. - Prioritize binary builds for R dependencies. - 2277 PR by lorenzwalthert. - Fix handling of git worktrees. - 2252 PR by daschuer. - Fix handling of `$R_HOME` for R hooks. - 2301 PR by jeff-m-sullivan. - 2300 issue by jeff-m-sullivan. - Fix a rare race condition in change stashing. - 2323 PR by asottile. - 2287 issue by ian-h-chamberlain. Updating - Remove python3.6 support. Note that pre-commit still supports running hooks written in older versions, but pre-commit itself requires python 3.7+. - 2215 PR by asottile. - pre-commit has migrated from the `master` branch to `main`. - 2302 PR by asottile. ```Links
- PyPI: https://pypi.org/project/pre-commit - Changelog: https://pyup.io/changelogs/pre-commit/ - Repo: https://github.com/pre-commit/pre-commit