#12 Update to 3.0.4 (close RHBZ#2163591)
Merged a month ago by music. Opened 2 months ago by music.
rpms/ music/pre-commit v3  into  rawhide

file modified
+1
@@ -14,3 +14,4 @@ 

  /pre-commit-2.19.0.tar.gz

  /pre-commit-2.20.0.tar.gz

  /pre-commit-2.21.0.tar.gz

+ /pre-commit-3.0.4.tar.gz

file modified
+37 -5
@@ -1,8 +1,8 @@ 

  %bcond_without check

  

  Name:           pre-commit

- Version:        2.21.0

- Release:        2%{?dist}

+ Version:        3.0.4

+ Release:        1%{?dist}

  Summary:        Framework for managing and maintaining multi-language pre-commit hooks

  

  # SPDX
@@ -35,8 +35,8 @@ 

  BuildRequires:  git-core

  BuildRequires:  lua-devel

  BuildRequires:  luarocks

- BuildRequires:  npm

  BuildRequires:  nodejs

+ BuildRequires:  npm

  BuildRequires:  perl-CPAN

  BuildRequires:  ruby

  BuildRequires:  rubygems
@@ -87,13 +87,19 @@ 

  k="${k-}${k+ and }not test_additional_ruby_dependencies_installed"

  k="${k-}${k+ and }not test_additional_rust_cli_dependencies_installed"

  k="${k-}${k+ and }not test_additional_rust_lib_dependencies_installed"

+ k="${k-}${k+ and }not test_conda_additional_deps"

  k="${k-}${k+ and }not test_conda_hook"

+ k="${k-}${k+ and }not test_conda_language"

  k="${k-}${k+ and }not test_conda_with_additional_dependencies_hook"

  k="${k-}${k+ and }not test_dotnet_hook"

  k="${k-}${k+ and }not test_golang_hook"

  k="${k-}${k+ and }not test_golang_hook_still_works_when_gobin_is_set"

+ k="${k-}${k+ and }not test_golang_infer_go_version_default"

+ k="${k-}${k+ and }not test_golang_system_hook"

+ k="${k-}${k+ and }not test_golang_versioned_hook"

  k="${k-}${k+ and }not test_golang_with_recursive_submodule"

  k="${k-}${k+ and }not test_install_ruby_with_version"

+ k="${k-}${k+ and }not test_installs_rust_missing_rustup"

  k="${k-}${k+ and }not test_installs_with_bootstrapped_rustup"

  k="${k-}${k+ and }not test_installs_with_existing_rustup"

  k="${k-}${k+ and }not test_installs_without_links_outside_env"
@@ -102,18 +108,43 @@ 

  k="${k-}${k+ and }not test_local_lua_additional_dependencies"

  k="${k-}${k+ and }not test_local_perl_additional_dependencies"

  k="${k-}${k+ and }not test_local_rust_additional_dependencies"

+ k="${k-}${k+ and }not test_lua_additional_dependencies"

+ k="${k-}${k+ and }not test_node_additional_deps"

+ k="${k-}${k+ and }not test_node_hook_versions"

+ k="${k-}${k+ and }not test_perl_additional_dependencies"

  k="${k-}${k+ and }not test_r_hook"

+ k="${k-}${k+ and }not test_r_inline"

  k="${k-}${k+ and }not test_r_inline_hook"

  k="${k-}${k+ and }not test_r_local_with_additional_dependencies_hook"

  k="${k-}${k+ and }not test_r_with_additional_dependencies_hook"

+ k="${k-}${k+ and }not test_ruby_additional_deps"

+ k="${k-}${k+ and }not test_ruby_hook_language_version"

+ k="${k-}${k+ and }not test_ruby_with_bundle_disable_shared_gems"

  k="${k-}${k+ and }not test_run_a_node_hook_default_version"

+ k="${k-}${k+ and }not test_run_lib_additional_dependencies"

  k="${k-}${k+ and }not test_run_ruby_hook_with_disable_shared_gems"

  k="${k-}${k+ and }not test_run_versioned_node_hook"

  k="${k-}${k+ and }not test_run_versioned_ruby_hook"

+ k="${k-}${k+ and }not test_rust_cli_additional_dependencies"

+ # Fails in koji but not in mock (Executable `ruby_hook` not found)

+ k="${k-}${k+ and }not test_ruby_hook_system"

+ # Requires rustup (not packaged), and would require network access even if

+ # rustup were available:

+ k="${k-}${k+ and }not test_language_version_with_rustup"

+ # Requires coursier (not packaged):

+ k="${k-}${k+ and }not test_coursier_hook"

+ k="${k-}${k+ and }not test_coursier_hook_additional_dependencies"

+ k="${k-}${k+ and }not test_error_if_no_deps_or_channel"

  # Requires dart (not packaged):

+ k="${k-}${k+ and }not test_dart"

+ k="${k-}${k+ and }not test_dart_additional_deps"

+ k="${k-}${k+ and }not test_dart_additional_deps_versioned"

  k="${k-}${k+ and }not test_dart_hook"

  k="${k-}${k+ and }not test_local_dart_additional_dependencies"

  k="${k-}${k+ and }not test_local_dart_additional_dependencies_versioned"

+ # Requires swift-lang, which we have chosen not to BuildRequire; see comments

+ # earlier in the spec file:

+ k="${k-}${k+ and }not test_swift_language"

  # Does not work under (i.e., respect) an “external” PYTHONPATH

  k="${k-}${k+ and }not test_installed_from_venv"

  # Fails in koji but not local mock (hook exits with code 1, no useful output)
@@ -125,11 +156,12 @@ 

  %files -f %{pyproject_files}

  %doc README.md CHANGELOG.md CONTRIBUTING.md

  %{_bindir}/pre-commit

- %{_bindir}/pre-commit-validate-config

- %{_bindir}/pre-commit-validate-manifest

  

  

  %changelog

+ * Fri Feb 03 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 3.0.4-1

+ - Update to 3.0.4 (close RHBZ#2163591)

+ 

  * Mon Jan 23 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 2.21.0-2

  - Use ruby, not rubypick

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (pre-commit-2.21.0.tar.gz) = d911a29d2a4d9095441a3d1105653780105bd320522bf3df692acebd4093048d91644ec85ab93ef2291e3e60ca2042bae83391d4013ac546f56bdeec29575ee4

+ SHA512 (pre-commit-3.0.4.tar.gz) = d51aca29b50f67ae42aa70d849939e6af96ff64c6fb214cddbc5a35cacebb8a54a4911110d0615a1a499516fcc2a06bb47d7e11da84ef636c3fcfdc8d2cbe343

https://github.com/pre-commit/pre-commit/compare/v2.21.0...v3.0.4

3.0.4 - 2023-02-03
==================

### Fixes

- Fix hook diff detection for files affected by `--textconv`.

3.0.3 - 2023-02-01
==================

### Fixes

- Revert "Prevent local `Gemfile` from interfering with hook execution.".

3.0.2 - 2023-01-29
==================

### Fixes

- Prevent local `Gemfile` from interfering with hook execution.
- Fix `language: r`, `repo: local` hooks

3.0.1 - 2023-01-26
==================

### Fixes

- Ensure coursier hooks are available offline after install.

3.0.0 - 2023-01-23
==================

### Features

- Make `language: golang` bootstrap `go` if not present.
- `language: coursier` now supports `additional_dependencies` and `repo: local`
- Upgrade `ruby-build` to `20221225`.

### Fixes

- Improve error message for invalid yaml for `pre-commit autoupdate`.
- `repo: local` no longer provisions an empty `git` repo.

### Updating

- Drop support for python<3.8
- Drop support for top-level list, use `pre-commit migrate-config` to update.
- Drop support for `sha` to specify revision, use `pre-commit migrate-config` to update.
- Remove `pre-commit-validate-config` and `pre-commit-validate-manifest`, use `pre-commit validate-config` and `pre-commit validate-manifest` instead.
- `language: golang` hooks must use `go.mod` to specify dependencies

Testing this in COPR did not reveal any incompatibilities.

We should announce this with one week’s notice on the devel list since it is a new major version with some small incompatible changes. That means it would be built after F38 branching. It should be fine for both F39/Rawhide and F38/Branched.

Announced to the devel list. Merge and build for F38 and F39 no earlier than 2023-02-14.

You are way more careful than I would have been :)

Pull-Request has been merged by music

a month ago