mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
gnu: pre-commit: Update to 3.1.1.
* gnu/packages/version-control.scm (pre-commit): Update to 3.1.1. [propagated-inputs]: Remove python-toml. Signed-off-by: Lars-Dominik Braun <lars@6xq.net>
This commit is contained in:
parent
b7e34dfca4
commit
94c898cd9b
1 changed files with 21 additions and 5 deletions
|
@ -1667,8 +1667,8 @@ (define-public gitile
|
||||||
|
|
||||||
(define-public pre-commit
|
(define-public pre-commit
|
||||||
(package
|
(package
|
||||||
(name "pre-commit")
|
(name "pre-commit") ;formerly known as python-pre-commit
|
||||||
(version "2.20.0")
|
(version "3.1.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch) ; no tests in PyPI release
|
(method git-fetch) ; no tests in PyPI release
|
||||||
|
@ -1677,7 +1677,11 @@ (define-public pre-commit
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(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)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
|
@ -1710,6 +1714,18 @@ (define-public pre-commit
|
||||||
;; Ruby and Node tests require node and gem.
|
;; Ruby and Node tests require node and gem.
|
||||||
"--ignore=tests/languages/node_test.py"
|
"--ignore=tests/languages/node_test.py"
|
||||||
"--ignore=tests/languages/ruby_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"
|
"-k"
|
||||||
(string-append
|
(string-append
|
||||||
;; TODO: these tests fail with AssertionError. It may
|
;; TODO: these tests fail with AssertionError. It may
|
||||||
|
@ -1717,7 +1733,8 @@ (define-public pre-commit
|
||||||
"not test_install_existing_hooks_no_overwrite"
|
"not test_install_existing_hooks_no_overwrite"
|
||||||
" and not test_uninstall_restores_legacy_hooks"
|
" and not test_uninstall_restores_legacy_hooks"
|
||||||
" and not test_installed_from_venv"
|
" 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
|
(native-inputs
|
||||||
`(("git" ,git-minimal)
|
`(("git" ,git-minimal)
|
||||||
("python-covdefaults" ,python-covdefaults)
|
("python-covdefaults" ,python-covdefaults)
|
||||||
|
@ -1733,7 +1750,6 @@ (define-public pre-commit
|
||||||
python-identify
|
python-identify
|
||||||
python-nodeenv
|
python-nodeenv
|
||||||
python-pyyaml
|
python-pyyaml
|
||||||
python-toml
|
|
||||||
python-virtualenv))
|
python-virtualenv))
|
||||||
(home-page "https://pre-commit.com/")
|
(home-page "https://pre-commit.com/")
|
||||||
(synopsis "Framework for managing and maintaining pre-commit hooks")
|
(synopsis "Framework for managing and maintaining pre-commit hooks")
|
||||||
|
|
Loading…
Reference in a new issue