From a9a6c08f037d6610beda97c68d693390221f89403976e0f76799b08ec6b99f40 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 26 Mar 2022 19:50:57 +0000 Subject: [PATCH] - 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/package/show/devel:languages:python/python-pre-commit?expand=0&rev=15 --- pre_commit-2.16.0.tar.gz | 3 --- pre_commit-2.17.0.tar.gz | 3 +++ python-pre-commit.changes | 16 ++++++++++++++++ python-pre-commit.spec | 6 +++++- 4 files changed, 24 insertions(+), 4 deletions(-) delete mode 100644 pre_commit-2.16.0.tar.gz create mode 100644 pre_commit-2.17.0.tar.gz diff --git a/pre_commit-2.16.0.tar.gz b/pre_commit-2.16.0.tar.gz deleted file mode 100644 index 6f8cfec..0000000 --- a/pre_commit-2.16.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:30bbcd7d3f25b5df34aca881258a9159e396e605a611669037cf3209e3dfc657 -size 256930 diff --git a/pre_commit-2.17.0.tar.gz b/pre_commit-2.17.0.tar.gz new file mode 100644 index 0000000..48644f4 --- /dev/null +++ b/pre_commit-2.17.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e56334138c15a173742f9bc3f8a06f4abf53656b449560a280cb85a5846fc4b9 +size 261131 diff --git a/python-pre-commit.changes b/python-pre-commit.changes index ae399b8..33370ee 100644 --- a/python-pre-commit.changes +++ b/python-pre-commit.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Sat Mar 26 19:25:34 UTC 2022 - Dirk Müller + +- 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 diff --git a/python-pre-commit.spec b/python-pre-commit.spec index cb8d337..9f47720 100644 --- a/python-pre-commit.spec +++ b/python-pre-commit.spec @@ -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)"