14
0

Accepting request 945468 from devel:languages:python

- 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
This commit is contained in:
2022-01-11 20:19:53 +00:00
committed by Git OBS Bridge
4 changed files with 81 additions and 16 deletions

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

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

View File

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

View File

@@ -1,3 +1,66 @@
-------------------------------------------------------------------
Tue Jan 11 01:29:44 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- 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
* Allow ci as a top-level map for configuration for https://pre-commit.ci
* Add warning for mutable rev in configuration
* Add warning for /* in top-level files / exclude regexes
* Expose PRE_COMMIT_REMOTE_BRANCH environment variable during pre-push hooks
* Produce error message for language / language_version for non-installable languages
* Fix execution in worktrees in subdirectories of bare repositories
* Fix cleanup code on docker volumes for go
* Fix default value for types_or so symlink and directory can be matched
* Improve error message for "hook goes missing"
* Add warning for /* in files / exclude regexes
* Add types_or which allows matching multiple disparate types in a hook
* Improve cleanup for language: dotnet
* Fix conflict with external rbenv and language_version: default
* Improve performance of git status / git diff commands by ignoring submodules
* Allow default language_version of system when the homedir is /
* Update sample-config versions
* Add --negate option to language: pygrep hooks
* Add zipapp support
* #1616 PR by @asottile.
* Exit with distinct codes: 1 (user error), 3 (unexpected error), 130 (^C)
* Improve healthy() check for language: node + language_version: system hooks when the system executable goes missing.
* pre-commit/action#45 issue by @KOliver94.
* Fix excess whitespace in error log traceback
* Fix language: ruby hooks when --format-executable is present in a gemrc
* Move cygwin / win32 mismatch error earlier to catch msys2 mismatches
* Remove -p workaround for old virtualenv
* Fix language: node installations to not symlink outside of the environment
* pre-commit-ci/issues#2 issue by @DanielJSottile.
* Don't identify shim executables as valid system for defaulting language_version for language: node / language: ruby
-------------------------------------------------------------------
Tue Feb 16 11:29:34 UTC 2021 - Robert Munteanu <rombert@apache.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pre-commit
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,11 +19,10 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pre-commit
Version: 2.7.1
Version: 2.16.0
Release: 0
Summary: Multi-language pre-commit hooks
License: MIT
Group: Development/Languages/Python
URL: https://github.com/pre-commit/pre-commit
Source: https://github.com/pre-commit/pre-commit/archive/v%{version}.tar.gz#/pre_commit-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
@@ -33,10 +32,11 @@ Requires: python-PyYAML >= 5.1
Requires: python-cfgv >= 2.0.0
Requires: python-identify >= 1.0.0
Requires: python-nodeenv >= 0.11.1
Requires: python-re-assert
Requires: python-toml
Requires: python-virtualenv >= 20.0.8
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module PyYAML >= 5.1}
@@ -46,6 +46,7 @@ BuildRequires: %{python_module mock}
BuildRequires: %{python_module nodeenv >= 0.11.1}
BuildRequires: %{python_module pytest-env}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module re-assert}
BuildRequires: %{python_module toml}
BuildRequires: %{python_module virtualenv >= 20.0.8}
BuildRequires: %{pythons}
@@ -74,21 +75,22 @@ sed -i 's|^#!%{_bindir}/env python|#!%{_bindir}/python|' pre_commit/resources/ho
export GIT_AUTHOR_NAME=test GIT_COMMITTER_NAME=test \
GIT_AUTHOR_EMAIL=test@example.com GIT_COMMITTER_EMAIL=test@example.com \
VIRTUALENV_NO_DOWNLOAD=1 PRE_COMMIT_NO_CONCURRENCY=1 LANG=en_US.UTF-8
# # gh#pre-commit/pre-commit#1202
# # test_switch_language_versions_doesnt_clobber - looks like your installation of python is broken?
# # test_run_a_ruby_hook, test_additional_ruby_dependencies_installed: you need to have gem installed
# # test_golang_hook, test_golang_hook_still_works_when_gobin_is_set, test_additional_golang_dependencies_installed, test_local_golang_additional_dependencies: you need to have go installed
# # test_rust_hook, test_additional_rust_lib_dependencies_installed, test_local_rust_additional_dependencies: you need to have cargo installed
# # test_installed_from_venv I suspect you have some PYTHONPATH shenanigans going on? hard to tell
# # conda tests: we do not have conda
# # test_node_hook_with_npm_userconfig_set: need internet
# # test_perl_hook, test_local_perl_additional_dependencies: need internet
# gh#pre-commit/pre-commit#1202
# test_switch_language_versions_doesnt_clobber - looks like your installation of python is broken?
# test_run_a_ruby_hook, test_additional_ruby_dependencies_installed: you need to have gem installed
# test_golang_hook, test_golang_hook_still_works_when_gobin_is_set, test_additional_golang_dependencies_installed, test_local_golang_additional_dependencies: you need to have go installed
# test_rust_hook, test_additional_rust_lib_dependencies_installed, test_local_rust_additional_dependencies: you need to have cargo installed
# test_installed_from_venv I suspect you have some PYTHONPATH shenanigans going on? hard to tell
# conda, dart, dotnet, node, r tests: not available
# test_node_hook_with_npm_userconfig_set: need internet
# test_perl_hook, test_local_perl_additional_dependencies: need internet
EXCLUDED_TESTS="test_main or test_run_a_node_hook or test_run_versioned_node_hook or test_additional_node_dependencies_installed or test_node_hook_with_npm_userconfig_set"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_run_versioned_ruby_hook or test_run_ruby_hook_with_disable_shared_gems or test_additional_dependencies_roll_forward"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_golang or test_additional_ruby_ or test_additional_golang_ or test_additional_rust_ or test_rust"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_switch_language_versions_doesnt_clobber or test_run_a_ruby_hook or test_local_golang_additional_dependencies"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_rust_additional_dependencies or test_installed_from_venv"
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"
git init .
%pytest -k "not ($EXCLUDED_TESTS)"