15
0

Compare commits

8 Commits

Author SHA256 Message Date
e0760012ea Accepting request 1327973 from devel:languages:python
- Update to 4.5.1:
  * Features
    + Add pre-commit hazmat.
    + Add --fail-fast option to pre-commit
    + Upgrade ruby-build / rbenv.
    + Add language: unsupported / language: unsupported_script as aliases for
      language: system / language: script (which will eventually be
      deprecated).
    + Add support docker-in-docker detection for cgroups v2.
    + language: docker / language: docker_image: detect rootless docker.
    + For language: python first attempt a versioned python executable for
      the default language version before consulting a potentially
      unversioned sys.executable.
    + language: julia: avoid startup.jl when executing hooks
    + language: dart: support latest dart versions which require a higher sdk
    + Add language: julia.
  * Fixes
    + Fix language: python with repo: local without additional_dependencies.
    + Handle when docker gives SecurityOptions: null.
    + Fix error context for invalid stages in .pre-commit-config.yaml.
    + Handle error during conflict detection when a file is named "HEAD"
    + Disable automatic toolchain switching for language: golang.
    + Fix language: r installation when initiated by RStudio.

OBS-URL: https://build.opensuse.org/request/show/1327973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=24
2026-01-19 17:36:45 +00:00
b248d05060 - Update to 4.5.1:
* Features
    + Add pre-commit hazmat.
    + Add --fail-fast option to pre-commit
    + Upgrade ruby-build / rbenv.
    + Add language: unsupported / language: unsupported_script as aliases for
      language: system / language: script (which will eventually be
      deprecated).
    + Add support docker-in-docker detection for cgroups v2.
    + language: docker / language: docker_image: detect rootless docker.
    + For language: python first attempt a versioned python executable for
      the default language version before consulting a potentially
      unversioned sys.executable.
    + language: julia: avoid startup.jl when executing hooks
    + language: dart: support latest dart versions which require a higher sdk
    + Add language: julia.
  * Fixes
    + Fix language: python with repo: local without additional_dependencies.
    + Handle when docker gives SecurityOptions: null.
    + Fix error context for invalid stages in .pre-commit-config.yaml.
    + Handle error during conflict detection when a file is named "HEAD"
    + Disable automatic toolchain switching for language: golang.
    + Fix language: r installation when initiated by RStudio.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=47
2026-01-19 02:10:20 +00:00
01d16f673e Accepting request 1224784 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1224784
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=23
2024-11-18 19:01:45 +00:00
81b3778a4a Accepting request 1224424 from home:deneb_alpha:devel-utils
Fix build on SLES 15 SP7

OBS-URL: https://build.opensuse.org/request/show/1224424
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=45
2024-11-18 08:03:48 +00:00
ccc8f56d54 Accepting request 1218114 from devel:languages:python
- update to 4.0.1:
  * Fix `pre-commit migrate-config` for unquoted deprecated
    stages names with purelib `pyyaml`.
  * Improve `pre-commit migrate-config` to handle more yaml
    formats.
  * Handle `stages` deprecation in `pre-commit migrate-config`.
  * Upgrade `ruby-build`.
  * Add "sensible regex" warnings to `repo: meta`.
  * Add warnings for deprecated `stages` (`commit` -> `pre-
    commit`, `push` -> `pre-push`, `merge-commit` -> `pre-merge-commit`).
  * `language: python_venv` has been removed -- use `language:
    python` instead.

OBS-URL: https://build.opensuse.org/request/show/1218114
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=22
2024-10-25 17:19:47 +00:00
e808a3baa2 - update to 4.0.1:
* Fix `pre-commit migrate-config` for unquoted deprecated
    stages names with purelib `pyyaml`.
  * Improve `pre-commit migrate-config` to handle more yaml
    formats.
  * Handle `stages` deprecation in `pre-commit migrate-config`.
  * Upgrade `ruby-build`.
  * Add "sensible regex" warnings to `repo: meta`.
  * Add warnings for deprecated `stages` (`commit` -> `pre-
    commit`, `push` -> `pre-push`, `merge-commit` -> `pre-merge-commit`).
  * `language: python_venv` has been removed -- use `language:
    python` instead.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=43
2024-10-24 19:24:11 +00:00
e88a10eeda Accepting request 1191754 from devel:languages:python
- update to 3.8.0:
  * Implement health checks for `language: r` so environments are
    recreated if the system version of R changes.

OBS-URL: https://build.opensuse.org/request/show/1191754
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pre-commit?expand=0&rev=21
2024-08-06 07:08:06 +00:00
d9165013bc - update to 3.8.0:
* Implement health checks for `language: r` so environments are
    recreated if the system version of R changes.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pre-commit?expand=0&rev=41
2024-08-05 18:59:06 +00:00
4 changed files with 78 additions and 7 deletions

View File

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

3
pre-commit-4.5.1.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,61 @@
-------------------------------------------------------------------
Mon Jan 19 02:10:06 UTC 2026 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 4.5.1:
* Features
+ Add pre-commit hazmat.
+ Add --fail-fast option to pre-commit
+ Upgrade ruby-build / rbenv.
+ Add language: unsupported / language: unsupported_script as aliases for
language: system / language: script (which will eventually be
deprecated).
+ Add support docker-in-docker detection for cgroups v2.
+ language: docker / language: docker_image: detect rootless docker.
+ For language: python first attempt a versioned python executable for
the default language version before consulting a potentially
unversioned sys.executable.
+ language: julia: avoid startup.jl when executing hooks
+ language: dart: support latest dart versions which require a higher sdk
+ Add language: julia.
* Fixes
+ Fix language: python with repo: local without additional_dependencies.
+ Handle when docker gives SecurityOptions: null.
+ Fix error context for invalid stages in .pre-commit-config.yaml.
+ Handle error during conflict detection when a file is named "HEAD"
+ Disable automatic toolchain switching for language: golang.
+ Fix language: r installation when initiated by RStudio.
-------------------------------------------------------------------
Fri Nov 15 10:58:24 UTC 2024 - Marina Latini <marina.latini@suse.com>
- spec file changes:
* Specify a Group tag for recent Leap and SUSE Linux Enterprise
* Disable Perl install test as that requires network for
CPAN initialisation also on SUSE Linux Enterprise 15 SP7
-------------------------------------------------------------------
Thu Oct 24 19:23:34 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 4.0.1:
* Fix `pre-commit migrate-config` for unquoted deprecated
stages names with purelib `pyyaml`.
* Improve `pre-commit migrate-config` to handle more yaml
formats.
* Handle `stages` deprecation in `pre-commit migrate-config`.
* Upgrade `ruby-build`.
* Add "sensible regex" warnings to `repo: meta`.
* Add warnings for deprecated `stages` (`commit` -> `pre-
commit`, `push` -> `pre-push`, `merge-commit` -> `pre-merge-commit`).
* `language: python_venv` has been removed -- use `language:
python` instead.
-------------------------------------------------------------------
Mon Aug 5 18:58:56 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 3.8.0:
* Implement health checks for `language: r` so environments are
recreated if the system version of R changes.
-------------------------------------------------------------------
Thu Jun 6 19:37:17 UTC 2024 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pre-commit
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,13 +18,13 @@
%{?sle15_python_module_pythons}
Name: python-pre-commit
Version: 3.7.1
Version: 4.5.1
Release: 0
Summary: Multi-language pre-commit hooks
License: MIT
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
%if 0%{?sle_version} <= 150600
%if 0%{?sle_version} <= 150700
Group: Development/Tools/Other
%endif
BuildRequires: %{python_module base >= 3.9}
@@ -94,6 +94,7 @@ export GIT_AUTHOR_NAME=test GIT_COMMITTER_NAME=test \
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_automatic_toolchain_switching"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_switch_language_versions_doesnt_clobber or test_run_a_ruby_hook or test_local_golang_additional_deps"
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"
@@ -109,7 +110,19 @@ EXCLUDED_TESTS="$EXCLUDED_TESTS or test_lua_additional_dependencies"
EXCLUDED_TESTS="$EXCLUDED_TESTS or (golang_test and test_during_commit_all)"
# requires swift
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_swift_language"
%if 0%{?sle_version} <= 150600
# requires juliaup which require network
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_julia_hook or test_julia_repo_local"
# requires setuptools, does not respect PIP_WHEEL_DIR
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_healthy_default_creator or test_healthy_venv_creator"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_unhealthy_python_goes_missing or test_unhealthy_with_version_change"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_unhealthy_system_version_changes or test_unhealthy_old_virtualenv"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_unhealthy_unexpected_pyvenv or test_unhealthy_then_replaced"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_language_versioned_python_hook or test_simple_python_hook"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_simple_python_hook_default_version or test_python_hook_weird_setup_cfg"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_repository_state_compatibility or test_reinstall"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_control_c_control_c_on_install or test_invalidated_virtualenv"
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_really_long_file_paths or test_local_python_repo"
%if 0%{?sle_version} <= 150700
# requires network on Leap or SUSE Linux Enterprise
EXCLUDED_TESTS="$EXCLUDED_TESTS or test_perl_install"
%endif