14
0

Accepting request 965080 from devel:languages:python

- 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
This commit is contained in:
2022-03-26 21:32:14 +00:00
committed by Git OBS Bridge
4 changed files with 24 additions and 4 deletions

View File

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

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

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

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Sat Mar 26 19:25:34 UTC 2022 - Dirk Müller <dmueller@suse.com>
- 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.
-------------------------------------------------------------------
Tue Jan 11 01:29:44 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -19,7 +19,7 @@
%define skip_python2 1
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pre-commit
Version: 2.16.0
Version: 2.17.0
Release: 0
Summary: Multi-language pre-commit hooks
License: MIT
@@ -27,6 +27,8 @@ 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}
BuildRequires: fdupes
BuildRequires: lua54-devel
BuildRequires: lua54-luarocks
BuildRequires: python-rpm-macros
Requires: python-PyYAML >= 5.1
Requires: python-cfgv >= 2.0.0
@@ -91,6 +93,8 @@ EXCLUDED_TESTS="$EXCLUDED_TESTS or test_switch_language_versions_doesnt_clobber
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"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_local_lua_additional_dependencies"
git init .
%pytest -k "not ($EXCLUDED_TESTS)"