- update to 3.7.0:
* Use a tty for `docker` and `docker_image` hooks when
`--color` is specified.
* Fix `fail_fast` for individual hooks stopping when previous
hooks had failed.
* The per-hook behaviour of `fail_fast` was fixed. If you want
the pre-3.7.0 behaviour, add `fail_fast: true` to all hooks
before the last `fail_fast` hook.
- Specify a Group tag for Leap and SUSE Linux Enterprise
CPAN initialisation also on SUSE Linux Enterprise.
- Fix build for multiple python flavors
* 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
* Removed pcre language, use pygrep instead.
* Replace aspy.yaml with sort_keys=False.
* Add support for perl.
* Fix python healthy() check when python executable goes missing.
OBS-URL: https://build.opensuse.org/request/show/1161391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=19
* Use a tty for `docker` and `docker_image` hooks when
`--color` is specified.
* Fix `fail_fast` for individual hooks stopping when previous
hooks had failed.
* The per-hook behaviour of `fail_fast` was fixed. If you want
the pre-3.7.0 behaviour, add `fail_fast: true` to all hooks
before the last `fail_fast` hook.
- Specify a Group tag for Leap and SUSE Linux Enterprise
CPAN initialisation also on SUSE Linux Enterprise.
- Fix build for multiple python flavors
* 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
* Removed pcre language, use pygrep instead.
* Replace aspy.yaml with sort_keys=False.
* Add support for perl.
* Fix python healthy() check when python executable goes missing.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=37
- For Leap, build this on modern Python as 3.6 is no longer supported.
- On Leap, use Lua 5.3 as luarocks is not packaged for Lua 5.4.
- On Leap, disable Perl install test as that requires network for
CPAN initialisation.
Note that, right now, this won't fix the 15.6 build as the dependency
python-editdistance is from devel:languages:python:numeric and the fixed version
in that repo is not visible in devel:languages:python. However, this will at
least give us a working build on devel:languages:python:backports. And once the
fixed version of python-editdistance makes it into 15.6 we will also get a working
build for 15.6 over here.
OBS-URL: https://build.opensuse.org/request/show/1129254
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=29
- update to version 3.5.0
* Features
+ Improve performance of check-hooks-apply and check-useless-excludes.
* Fixes
+ Use time.monotonic() for more accurate hook timing.
* Migrating
+ Require npm 6.x+ for language: node hooks.
- notable changes since 2.21.0
* Remove pre-commit-validate-config and pre-commit-validate-manifest,
use pre-commit validate-config and pre-commit validate-manifest
instead.
* See CHANGELOG.md
- spec file changes
* Remove python-re-assert and python-toml from the runtime requirements
* Remove python-toml from the build requirements
* Update required python-virtualenv version to 20.10.0
* Rename excluded test est_local_golang_additional_dependencies to
test_local_golang_additional_deps
* Exclude new tests that require internet access
+ test_run_example_executable
+ test_run_dep
+ test_perl_additional_dependencies
+ test_lua_additional_dependencies
* Exclude new tests that have unfulfillable dependencies
+ test_swift_language
* Add LICENSE and CHANGELOG.md to the files list
OBS-URL: https://build.opensuse.org/request/show/1121631
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=27
- update to 2.21.0:
* Require new-enough virtualenv to prevent 3.10 breakage
* Respect aliases with `SKIP` for environment install.
* Allow `pre-commit run --files` against unmerged paths.
* Also apply regex warnings to `repo: local` hooks.
* `rust` is now a "first class" language -- supporting `language_version`
* `r` now uses more-reliable binary installation.
* `GIT_ALLOW_PROTOCOL` is now passed through for git operations.
* `GIT_ASKPASS` is now passed through for git operations.
* Remove `toml` dependency by using `cargo add` directly.
* Support `dotnet` hooks which have dotted prefixes.
* ### Fixes
* Properly adjust `--commit-msg-filename` if run from a sub directory.
* Simplify `--intent-to-add` detection by using `git diff`.
* Fix `R.exe` selection on windows.
* Skip default `nuget` source when installing `dotnet` packages.
OBS-URL: https://build.opensuse.org/request/show/1046303
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=13
* Require new-enough virtualenv to prevent 3.10 breakage
* Respect aliases with `SKIP` for environment install.
* Allow `pre-commit run --files` against unmerged paths.
* Also apply regex warnings to `repo: local` hooks.
* `rust` is now a "first class" language -- supporting `language_version`
* `r` now uses more-reliable binary installation.
* `GIT_ALLOW_PROTOCOL` is now passed through for git operations.
* `GIT_ASKPASS` is now passed through for git operations.
* Remove `toml` dependency by using `cargo add` directly.
* Support `dotnet` hooks which have dotted prefixes.
* ### Fixes
* Properly adjust `--commit-msg-filename` if run from a sub directory.
* Simplify `--intent-to-add` detection by using `git diff`.
* Fix `R.exe` selection on windows.
* Skip default `nuget` source when installing `dotnet` packages.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=25
- 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
oid sha256:ee00513461333787af71c9cc6926ce1cd8f2f4aa7f0cffdd3555d94febdc155b
size 270925
Reference in New Issue
Block a user
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.