14
0

- 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/package/show/devel:languages:python/python-pre-commit?expand=0&rev=25
This commit is contained in:
2023-01-02 20:20:28 +00:00
committed by Git OBS Bridge
parent e7b761404a
commit 418ed5714c
4 changed files with 27 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:380ca8e6ea7d4b3d851b6656aa861e51fa52e023b82e2b0781d43a602f9cb81f
size 266604

3
pre_commit-2.21.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0a1dc8836fcc8ddf960f778444ebec2da0323319f1832fc9f9c7db34a4e0c5a0
size 270532

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Mon Jan 2 20:10:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
- 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.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Nov 28 07:01:26 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com> Mon Nov 28 07:01:26 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pre-commit # spec file for package python-pre-commit
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%define skip_python2 1 %define skip_python2 1
Name: python-pre-commit Name: python-pre-commit
Version: 2.20.0 Version: 2.21.0
Release: 0 Release: 0
Summary: Multi-language pre-commit hooks Summary: Multi-language pre-commit hooks
License: MIT License: MIT
@@ -93,7 +93,8 @@ EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_rust_additional_dependencies or te
EXCLUDED_TESTS="$EXCLUDED_TESTS or conda or test_perl_hook or test_local_perl_additional_dependencies" EXCLUDED_TESTS="$EXCLUDED_TESTS or conda or test_perl_hook or test_local_perl_additional_dependencies"
EXCLUDED_TESTS="$EXCLUDED_TESTS or dart or dotnet or r_ or node or ruby" EXCLUDED_TESTS="$EXCLUDED_TESTS or dart or dotnet or r_ or node or ruby"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_lua_additional_dependencies" EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_lua_additional_dependencies"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_python_repo_python2" # rust_tests use rustup which require network
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_python_repo_python2 or rust_test"
# Fix issue with git submodule in OBS # Fix issue with git submodule in OBS
git config --global --add protocol.file.allow always git config --global --add protocol.file.allow always