17
0

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
This commit is contained in:
2026-01-19 17:36:45 +00:00
committed by Git OBS Bridge
4 changed files with 45 additions and 5 deletions

View File

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

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,30 @@
-------------------------------------------------------------------
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>

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,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-pre-commit
Version: 4.0.1
Version: 4.5.1
Release: 0
Summary: Multi-language pre-commit hooks
License: MIT
@@ -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,6 +110,18 @@ 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"
# 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"