17
0

Compare commits

6 Commits

Author SHA256 Message Date
db8a0f7292 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
05bea80bc8 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
e601f51ed7 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
1fd90780ff - 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
fd506d1fc8 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
92554637a5 - 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 5 additions and 45 deletions

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

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

View File

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

View File

@@ -1,30 +1,3 @@
-------------------------------------------------------------------
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) 2026 SUSE LLC and contributors
# Copyright (c) 2024 SUSE LLC
#
# 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.5.1
Version: 4.0.1
Release: 0
Summary: Multi-language pre-commit hooks
License: MIT
@@ -94,7 +94,6 @@ 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"
@@ -110,18 +109,6 @@ 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"