- version update to 2.18.1
2.18.1 - 2022-04-02
===================
### Fixes
- Fix regression for `repo: local` hooks running `python<3.7`
- #2324 PR by @asottile.
2.18.0 - 2022-04-02
===================
### 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.
OBS-URL: https://build.opensuse.org/request/show/967489
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=17
- update to 2.17.0:
- add warnings for regexes containing `[\\/]`.
- upgrade supported ruby versions.
- allow `language: conda` to use `mamba` or `micromamba` via
`PRE_COMMIT_USE_MAMBA=1` or `PRE_COMMIT_USE_MICROMAMBA=1` respectively.
- display `git --version` in error report.
- add `language: lua` as a supported language.
- temporarily add `setuptools` to the zipapp.
- use `go install` instead of `go get` for go 1.18+ support.
- fix `language: r` with a local renv and `RENV_PROJECT` set.
- forbid overriding `entry` in `language: meta` hooks which breaks them.
- always use `#!/bin/sh` on windows for hook script.
OBS-URL: https://build.opensuse.org/request/show/965080
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=8
- add warnings for regexes containing `[\\/]`.
- upgrade supported ruby versions.
- allow `language: conda` to use `mamba` or `micromamba` via
`PRE_COMMIT_USE_MAMBA=1` or `PRE_COMMIT_USE_MICROMAMBA=1` respectively.
- display `git --version` in error report.
- add `language: lua` as a supported language.
- temporarily add `setuptools` to the zipapp.
- use `go install` instead of `go get` for go 1.18+ support.
- fix `language: r` with a local renv and `RENV_PROJECT` set.
- forbid overriding `entry` in `language: meta` hooks which breaks them.
- always use `#!/bin/sh` on windows for hook script.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=15
- Update to 2.16.0:
* add warning for regexes containing [\/] or [/\\].
* move hook template back to bash resolving shebang-portability issues.
* add support for fail_fast at the individual hook level.
* allow passthrough of GIT_CONFIG_KEY_*, GIT_CONFIG_VALUE_*, and GIT_CONFIG_COUNT.
* fix temporary file stashing with for submodule.recurse=1.
* ban broken importlib-resources versions.
* replace exit(...) with raise SystemExit(...) for portability.
* add support for hooks written in dart.
* add support for post-rewrite hooks.
* fix check-useless-excludes with exclude matching broken symlink.
* eliminate duplicate mutable sha warning messages for pre-commit autoupdate.
* fix force-push of disparate histories using git>=2.28.
* fix check-useless-excludes and check-hooks-apply matching non-root .pre-commit-config.yaml.
* pre-commit-ci/issues#84 issue by @billsioros.
* During pre-push hooks, expose local branch as PRE_COMMIT_LOCAL_BRANCH.
* Improve container id detection for docker-beside-docker with custom hostname.
* Read legacy hooks in an encoding-agnostic way.
* Fix execution of docker hooks for docker-in-docker.
* Attempt to mount from host with docker-in-docker.
* Enable repo: local for r hooks.
* Avoid warnings with mismatched renv versions.
* Fix race condition when stashing files in multiple parallel invocations
* pre-commit/mirrors-prettier#7 issue by @DeltaXWizard.
* Fix permissions of root folder in ruby archives.
* Fix r hooks when hook repo is a package
* Add support for post-merge hook.
* Add r as a supported hook language.
* Fix installation of local golang repositories for go 1.16.
* Fix language: golang repositories containing recursive submodules
OBS-URL: https://build.opensuse.org/request/show/945468
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=7
* add warning for regexes containing [\/] or [/\\].
* move hook template back to bash resolving shebang-portability issues.
* add support for fail_fast at the individual hook level.
* allow passthrough of GIT_CONFIG_KEY_*, GIT_CONFIG_VALUE_*, and GIT_CONFIG_COUNT.
* fix temporary file stashing with for submodule.recurse=1.
* ban broken importlib-resources versions.
* replace exit(...) with raise SystemExit(...) for portability.
* add support for hooks written in dart.
* add support for post-rewrite hooks.
* fix check-useless-excludes with exclude matching broken symlink.
* eliminate duplicate mutable sha warning messages for pre-commit autoupdate.
* fix force-push of disparate histories using git>=2.28.
* fix check-useless-excludes and check-hooks-apply matching non-root .pre-commit-config.yaml.
* pre-commit-ci/issues#84 issue by @billsioros.
* During pre-push hooks, expose local branch as PRE_COMMIT_LOCAL_BRANCH.
* Improve container id detection for docker-beside-docker with custom hostname.
* Read legacy hooks in an encoding-agnostic way.
* Fix execution of docker hooks for docker-in-docker.
* Attempt to mount from host with docker-in-docker.
* Enable repo: local for r hooks.
* Avoid warnings with mismatched renv versions.
* Fix race condition when stashing files in multiple parallel invocations
* pre-commit/mirrors-prettier#7 issue by @DeltaXWizard.
* Fix permissions of root folder in ruby archives.
* Fix r hooks when hook repo is a package
* Add support for post-merge hook.
* Add r as a supported hook language.
* Fix installation of local golang repositories for go 1.16.
* Fix language: golang repositories containing recursive submodules
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=14
* added skip_python2 back to spec file
- specfile:
* be more specific in %files section
- update to version 2.3.0:
* Features
+ Calculate character width using `east_asian_width` - #1378 PR by
@sophgn.
+ Use `language_version: system` by default for `node` hooks if
`node` / `npm` are globally installed. - #1388 PR by @asottile.
* Fixes
+ No longer use a hard-coded user id for docker hooks on windows -
#1371 PR by @killuazhu.
+ Fix colors on windows during `git commit` - #1381 issue by
@Cielquan. - #1382 PR by @asottile.
+ Produce readable error message for incorrect argument count to
`hook-impl` - #1394 issue by @pip9ball. - #1395 PR by
@asottile.
+ Fix installations which involve an upgrade of `pip` on windows -
#1398 issue by @xiaohuazi123. - #1399 PR by @asottile.
+ Preserve line endings in `pre-commit autoupdate` - #1402 PR by
@utek.
OBS-URL: https://build.opensuse.org/request/show/799916
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=6
- Update to 2.2.0
* Add conda as a new language.
* Remove python2 / python3.5 support. Note that pre-commit still
supports running hooks written in python2, but pre-commit itself
requires python 3.6+.
* Removed pcre language, use pygrep instead.
* Don't filter GIT_SSL_NO_VERIFY from environment when cloning.
* Replace aspy.yaml with sort_keys=False.
* Add support for perl.
* Fix python healthy() check when python executable goes missing.
* Many more fixes and improvements, see upstream changelog
OBS-URL: https://build.opensuse.org/request/show/786145
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=4