diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-05-02 15:37:27 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-24 10:14:56 +0100 |
| commit | 5a28a901ac38d187a3555dbb2b0ae53e23f80397 (patch) | |
| tree | 59eb355ab9e8535fc26af4e1793728508dfd4717 /gnu/packages/version-control.scm | |
| parent | 31d546523c0604b521ccefb21e83704fc091f8d9 (diff) | |
gnu: pre-commit: Update to 4.6.0.
* gnu/packages/version-control.scm (pre-commit): Update to 4.6.0.
[arguments]<#:test-flags>: Refresh them, improve comments.
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/version-control.scm')
| -rw-r--r-- | gnu/packages/version-control.scm | 36 |
1 files changed, 23 insertions, 13 deletions
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 314dd9d33de..f05b6066a82 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm | |||
| @@ -2751,7 +2751,7 @@ visualize your public Git repositories on a web interface.") | |||
| 2751 | (define-public pre-commit | 2751 | (define-public pre-commit |
| 2752 | (package | 2752 | (package |
| 2753 | (name "pre-commit") ;formerly known as python-pre-commit | 2753 | (name "pre-commit") ;formerly known as python-pre-commit |
| 2754 | (version "3.7.1") | 2754 | (version "4.6.0") |
| 2755 | (source | 2755 | (source |
| 2756 | (origin | 2756 | (origin |
| 2757 | (method git-fetch) ; no tests in PyPI release | 2757 | (method git-fetch) ; no tests in PyPI release |
| @@ -2760,7 +2760,7 @@ visualize your public Git repositories on a web interface.") | |||
| 2760 | (commit (string-append "v" version)))) | 2760 | (commit (string-append "v" version)))) |
| 2761 | (file-name (git-file-name name version)) | 2761 | (file-name (git-file-name name version)) |
| 2762 | (sha256 | 2762 | (sha256 |
| 2763 | (base32 "1m2cs21xq2j1x80s7bh47fm2nsbnfxgscxfijaqwdsi2rrf4vlzv")) | 2763 | (base32 "03whpgpbw24g3y6s8rn6888id9gyfpg9vnj4ng6xr4jg9nfa7xjr")) |
| 2764 | (modules '((guix build utils))) | 2764 | (modules '((guix build utils))) |
| 2765 | (snippet '(substitute* "setup.cfg" | 2765 | (snippet '(substitute* "setup.cfg" |
| 2766 | (("virtualenv>=20.10.0") ;our virtualenv (20.3.1) is fine | 2766 | (("virtualenv>=20.10.0") ;our virtualenv (20.3.1) is fine |
| @@ -2768,18 +2768,28 @@ visualize your public Git repositories on a web interface.") | |||
| 2768 | (build-system pyproject-build-system) | 2768 | (build-system pyproject-build-system) |
| 2769 | (arguments | 2769 | (arguments |
| 2770 | (list | 2770 | (list |
| 2771 | ;; Skip language-specific tests because they depennd on language tools. | ||
| 2772 | #:test-flags | 2771 | #:test-flags |
| 2773 | #~(list "--ignore" "tests/languages" | 2772 | #~(append |
| 2774 | ;; These fail with AssertionError. | 2773 | ;; Skip language-specific tests because they depend on language tools. |
| 2775 | "-k" (string-append | 2774 | (list "--ignore=tests/languages") |
| 2776 | "not test_additional_dependencies_roll_forward" | 2775 | ;; These tests rely on a hook that tries to install packages from pip. |
| 2777 | " and not test_control_c_control_c_on_install" | 2776 | (map (lambda (test) |
| 2778 | " and not test_invalidated_virtualenv" | 2777 | (string-append "--deselect=tests/repository_test.py::" |
| 2779 | " and not test_local_python_repo" | 2778 | test)) |
| 2780 | " and not test_install_existing_hooks_no_overwrite" | 2779 | (list "test_additional_dependencies_roll_forward" |
| 2781 | " and not test_uninstall_restores_legacy_hooks" | 2780 | "test_control_c_control_c_on_install" |
| 2782 | " and not test_installed_from_venv")) | 2781 | "test_invalidated_virtualenv" |
| 2782 | "test_local_python_repo" | ||
| 2783 | "test_repository_state_compatibility" | ||
| 2784 | "test_reinstall" | ||
| 2785 | "test_really_long_file_paths")) | ||
| 2786 | ;; XXX: These fail with AssertionError, unclear why. | ||
| 2787 | (map (lambda (test) | ||
| 2788 | (string-append "--deselect=tests/commands/" | ||
| 2789 | "install_uninstall_test.py::" test)) | ||
| 2790 | (list "test_install_existing_hooks_no_overwrite" | ||
| 2791 | "test_uninstall_restores_legacy_hooks" | ||
| 2792 | "test_installed_from_venv"))) | ||
| 2783 | #:phases | 2793 | #:phases |
| 2784 | #~(modify-phases %standard-phases | 2794 | #~(modify-phases %standard-phases |
| 2785 | (add-before 'check 'prepare-check-env | 2795 | (add-before 'check 'prepare-check-env |
