[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#62100] [PATCH v2 01/15] gnu: pre-commit: Update to 3.1.1.
From: |
Antero Mejr |
Subject: |
[bug#62100] [PATCH v2 01/15] gnu: pre-commit: Update to 3.1.1. |
Date: |
Sat, 11 Mar 2023 01:31:11 +0000 |
* gnu/packages/version-control.scm (pre-commit): Update to 3.1.1.
[propagated-inputs]: Remove python-toml.
---
gnu/packages/version-control.scm | 26 +++++++++++++++++++++-----
1 file changed, 21 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 8b0997768d..85291b12b7 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1667,8 +1667,8 @@ (define-public gitile
(define-public pre-commit
(package
- (name "pre-commit")
- (version "2.20.0")
+ (name "pre-commit") ;formerly known as python-pre-commit
+ (version "3.1.1")
(source
(origin
(method git-fetch) ; no tests in PyPI release
@@ -1677,7 +1677,11 @@ (define-public pre-commit
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
- (base32 "19jcg6nfnscp87h4wmbpw6r3lc8c75zkvb6wqgavq5dh7wkyg6pq"))))
+ (base32 "1rngcq1vd2phk45wp1cc5jz02wpi53fif0qwk633smfjcjj1kp41"))
+ (modules '((guix build utils)))
+ (snippet '(substitute* "setup.cfg"
+ (("virtualenv>=20.10.0") ;our virtualenv (20.3.1) is fine
+ "virtualenv>=20.0.8")))))
(build-system python-build-system)
(arguments
`(#:phases
@@ -1710,6 +1714,18 @@ (define-public pre-commit
;; Ruby and Node tests require node and gem.
"--ignore=tests/languages/node_test.py"
"--ignore=tests/languages/ruby_test.py"
+ ;; Skip lang-specific (network) tests added in 3.1.1
+ "--ignore=tests/languages/conda_test.py"
+ "--ignore=tests/languages/coursier_test.py"
+ "--ignore=tests/languages/dart_test.py"
+ "--ignore=tests/languages/docker_test.py"
+ "--ignore=tests/languages/docker_image_test.py"
+ "--ignore=tests/languages/dotnet_test.py"
+ "--ignore=tests/languages/golang_test.py"
+ "--ignore=tests/languages/lua_test.py"
+ "--ignore=tests/languages/perl_test.py"
+ "--ignore=tests/languages/rust_test.py"
+ "--ignore=tests/languages/swift_test.py"
"-k"
(string-append
;; TODO: these tests fail with AssertionError. It may
@@ -1717,7 +1733,8 @@ (define-public pre-commit
"not test_install_existing_hooks_no_overwrite"
" and not test_uninstall_restores_legacy_hooks"
" and not test_installed_from_venv"
- " and not test_healthy_venv_creator"))))))))
+ " and not test_healthy_venv_creator"
+ " and not test_r_hook and not test_r_inline"))))))))
(native-inputs
`(("git" ,git-minimal)
("python-covdefaults" ,python-covdefaults)
@@ -1733,7 +1750,6 @@ (define-public pre-commit
python-identify
python-nodeenv
python-pyyaml
- python-toml
python-virtualenv))
(home-page "https://pre-commit.com/")
(synopsis "Framework for managing and maintaining pre-commit hooks")
--
2.38.1
- [bug#62100] [PATCH 05/13] gnu: python-marshmallow-jsonapi: Remove python-pre-commit., (continued)
- [bug#62100] [PATCH 05/13] gnu: python-marshmallow-jsonapi: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 03/13] gnu: python-pyjwt: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 06/13] gnu: python-apispec: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 07/13] gnu: python-apispec-webframeworks: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 08/13] gnu: python-minikanren: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 09/13] gnu: python-doubletdetection: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 13/13] gnu: python-sphinxcontrib-apidoc: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 11/13] gnu: python-pytest-regressions: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 12/13] gnu: mdpo: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH 10/13] gnu: scvelo: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH v2 01/15] gnu: pre-commit: Update to 3.1.1.,
Antero Mejr <=
- [bug#62100] [PATCH v2 03/15] gnu: python-bidict: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH v2 04/15] gnu: python-pyjwt: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH v2 05/15] gnu: python-marshmallow: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH v2 12/15] gnu: python-pytest-regressions: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH v2 10/15] gnu: python-doubletdetection: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH v2 14/15] gnu: python-sphinxcontrib-apidoc: Remove python-pre-commit., Antero Mejr, 2023/03/10
- [bug#62100] [PATCH v2 06/15] gnu: python-marshmallow-jsonapi: Remove python-pre-commit., Antero Mejr, 2023/03/10