From unknown Tue Aug 19 14:22:59 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#48981] [PATCH 1/2] gnu: pre-commit: Update to 2.13.0. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Jun 2021 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48981 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48981@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162353279931782 (code B ref -1); Sat, 12 Jun 2021 21:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Jun 2021 21:19:59 +0000 Received: from localhost ([127.0.0.1]:42217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB2t-0008GX-Gr for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:19:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:42518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB2r-0008GQ-Nw for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:19:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsB2r-0003Y0-Gu for guix-patches@gnu.org; Sat, 12 Jun 2021 17:19:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsB2p-0007La-2Y for guix-patches@gnu.org; Sat, 12 Jun 2021 17:19:57 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4628E240027 for ; Sat, 12 Jun 2021 23:19:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623532793; bh=aijHrnWyJallung2rym5O2TvqSLUocwvWq3KZYVZaQI=; h=From:To:Cc:Subject:Date:From; b=PZguxos3LwQvWTmgwXhrWmcIrz1bk7sGffTl8PNEGyj2Ox02ogCzLLNsar5evj8ak UYFSWFndYkDBUo3ZIQ33Sk42gWz1zj7uEFckN7dmntJvZRpIvzT9jGsYUN3FFqa4Lj vTDLw48uFt5Htxzg9TF5WGkW5NdtaqplpcBZJYhv2r4zwT7hl8WiUobjePALWT63zQ lnpkMXPTwFf4bzazoFKUUR8BoL8kF26+3jSU4g+bZCJNGisJGp0R2uP+Eki3fShznS Je8M2LiZj/Mq4OIfaWS79qF1Ird9dL9T2/qQOmFXiN8V7U2yZUROPtSHqqTv3+qpSE Siz4AwqZ4slNA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G2VwR60nnz9rxL; Sat, 12 Jun 2021 23:19:51 +0200 (CEST) From: Vinicius Monego Date: Sat, 12 Jun 2021 21:19:33 +0000 Message-Id: <20210612211933.785958-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/version-control.scm (pre-commit): Update to 2.13.0. [arguments]<#:phases>: Don't return #t. [synopsis]: Slightly shorten it. --- gnu/packages/version-control.scm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 5900779de8..9f5341b4f9 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1520,7 +1520,7 @@ control to Git repositories.") (define-public pre-commit (package (name "pre-commit") - (version "2.12.1") + (version "2.13.0") (source (origin ;; No tests in the PyPI tarball. @@ -1530,7 +1530,7 @@ control to Git repositories.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0gwy5bnjnlj6yjcmghsibrcijvz9isxcygln7ihvi728p04rgymf")))) + (base32 "02lr8d6fkr32j4rpp2ac84a5gjwq16k1hb74j6js0kxg83qw6raf")))) (build-system python-build-system) (arguments `(#:phases @@ -1550,8 +1550,7 @@ control to Git repositories.") ;; Some tests will need a working git repository. (invoke "git" "init") (invoke "git" "config" "--global" "user.name" "Your Name") - (invoke "git" "config" "--global" "user.email" "you@example.com") - #t)) + (invoke "git" "config" "--global" "user.email" "you@example.com"))) (replace 'check (lambda* (#:key inputs outputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) @@ -1579,8 +1578,7 @@ control to Git repositories.") ;; 'reset-gzip-timestamps' phase can do its work. (let ((out (assoc-ref outputs "out"))) (for-each make-file-writable - (find-files out "\\.gz$")) - #t)))))) + (find-files out "\\.gz$")))))))) (native-inputs `(("git" ,git-minimal) ("python-covdefaults" ,python-covdefaults) @@ -1599,7 +1597,7 @@ control to Git repositories.") ("python-toml" ,python-toml) ("python-virtualenv" ,python-virtualenv))) (home-page "https://pre-commit.com/") - (synopsis "Framework for managing and maintaining multi-language pre-commit hooks") + (synopsis "Framework for managing and maintaining pre-commit hooks") (description "Pre-commit is a multi-language package manager for pre-commit hooks. You specify a list of hooks you want and pre-commit manages the installation and -- 2.32.0 From unknown Tue Aug 19 14:22:59 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#48981] [PATCH 2/2] gnu: pre-commit: Respect #:tests?. References: <20210612211933.785958-1-monego@posteo.net> In-Reply-To: <20210612211933.785958-1-monego@posteo.net> Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 12 Jun 2021 21:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48981 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48981@debbugs.gnu.org Cc: Vinicius Monego Received: via spool by 48981-submit@debbugs.gnu.org id=B48981.162353290532012 (code B ref 48981); Sat, 12 Jun 2021 21:22:02 +0000 Received: (at 48981) by debbugs.gnu.org; 12 Jun 2021 21:21:45 +0000 Received: from localhost ([127.0.0.1]:42224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB4U-0008K9-Vq for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:21:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42321) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB4T-0008Jt-DG for 48981@debbugs.gnu.org; Sat, 12 Jun 2021 17:21:38 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E8C7F2400FD for <48981@debbugs.gnu.org>; Sat, 12 Jun 2021 23:21:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623532890; bh=6mbXkxDmq7oyPfdN/WTNmqzu4Qq4w/hPPNSvXmMH9RE=; h=From:To:Cc:Subject:Date:From; b=Ho7hthkdiNxNYER1huY8ZAKE2u1DihmGBGHtj9dBrzsBGZqRIAn4onzkWnacVY5Bh PFgGDaZuopX0GpliymZIWCQOX0kfGYm6PTs8RyfpzVmR6XsKrj7sL4dgXumYy1TdIB fa7yoifXXXcd7oLOP9XEQ78nEpy2yojG/w767xUsk3GctgCLqOtYw7X7WOL1i5bNdS NYGHihnXDuFOETxWb5dXHiHUeThYT7jXieukPI0lDpkU62CfOvaEHOZCP74dFylUx4 OO7HinXoBYUUCO4S7mJis7M+MZxwW++4PJ9eZz2akkklylO251Qq9xse64nC/9+p5O 9LLCOCJFMf0RQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G2VyK3rvvz9rxP; Sat, 12 Jun 2021 23:21:29 +0200 (CEST) From: Vinicius Monego Date: Sat, 12 Jun 2021 21:21:10 +0000 Message-Id: <20210612212110.786147-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/packages/version-control.scm (pre-commit)[arguments]: Respect #:tests? in the 'check phase. --- gnu/packages/version-control.scm | 39 ++++++++++++++++---------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 9f5341b4f9..7792c608e4 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1552,26 +1552,27 @@ control to Git repositories.") (invoke "git" "config" "--global" "user.name" "Your Name") (invoke "git" "config" "--global" "user.email" "you@example.com"))) (replace 'check - (lambda* (#:key inputs outputs #:allow-other-keys) + (lambda* (#:key inputs outputs tests? #:allow-other-keys) (add-installed-pythonpath inputs outputs) - ;; The file below contains about 30 tests that fail because they - ;; depend on tools from multiple languages (cargo, npm, cpan, - ;; Rscript, etc). There are other tests that pass, but it's more - ;; convenient to skip the whole file than list 30 tests to skip. - (invoke "pytest" "--ignore=tests/repository_test.py" - ;; Ruby and Node tests require node and gem. - "--ignore=tests/languages/node_test.py" - "--ignore=tests/languages/ruby_test.py" - ;; FIXME: Python tests fail because of distlib version - ;; mismatch. Even with python-distlib/next it is - ;; pulling version 0.3.0, while 0.3.1 is required. - "--ignore=tests/languages/python_test.py" "-k" - (string-append - ;; TODO: these tests fail with AssertionError. It may - ;; be possible to fix them. - "not test_install_existing_hooks_no_overwrite" - " and not test_uninstall_restores_legacy_hooks" - " and not test_installed_from_venv")))) + (when tests? + ;; The file below contains 30+ tests that fail because they + ;; depend on tools from multiple languages (cargo, npm, cpan, + ;; Rscript, etc). Other tests are passing, but it's more + ;; convenient to skip the file than list 30 tests to skip. + (invoke "pytest" "--ignore=tests/repository_test.py" + ;; Ruby and Node tests require node and gem. + "--ignore=tests/languages/node_test.py" + "--ignore=tests/languages/ruby_test.py" + ;; FIXME: Python tests fail because of distlib version + ;; mismatch. Even with python-distlib/next it is + ;; pulling version 0.3.0, while 0.3.1 is required. + "--ignore=tests/languages/python_test.py" "-k" + (string-append + ;; TODO: these tests fail with AssertionError. It may + ;; be possible to fix them. + "not test_install_existing_hooks_no_overwrite" + " and not test_uninstall_restores_legacy_hooks" + " and not test_installed_from_venv"))))) (add-before 'reset-gzip-timestamps 'make-gz-writable (lambda* (#:key outputs #:allow-other-keys) ;; Make sure .gz files are writable so that the -- 2.32.0 From unknown Tue Aug 19 14:22:59 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vinicius Monego Subject: bug#48981: closed (Re: [bug#48981] [PATCH 1/2] gnu: pre-commit: Update to 2.13.0.) Message-ID: References: <20210612211933.785958-1-monego@posteo.net> X-Gnu-PR-Message: they-closed 48981 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 48981@debbugs.gnu.org Date: Sun, 13 Jun 2021 07:21:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1623568861-23198-1" This is a multi-part message in MIME format... ------------=_1623568861-23198-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #48981: [PATCH 1/2] gnu: pre-commit: Update to 2.13.0. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 48981@debbugs.gnu.org. --=20 48981: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48981 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1623568861-23198-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 48981-done) by debbugs.gnu.org; 13 Jun 2021 07:20:12 +0000 Received: from localhost ([127.0.0.1]:42511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsKPj-000614-RQ for submit@debbugs.gnu.org; Sun, 13 Jun 2021 03:20:11 -0400 Received: from flashner.co.il ([178.62.234.194]:45086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsKPi-00060j-1d for 48981-done@debbugs.gnu.org; Sun, 13 Jun 2021 03:20:10 -0400 Received: from localhost (unknown [31.210.177.125]) by flashner.co.il (Postfix) with ESMTPSA id B9A55400CD; Sun, 13 Jun 2021 07:20:03 +0000 (UTC) Date: Sun, 13 Jun 2021 10:19:04 +0300 From: Efraim Flashner To: Vinicius Monego Subject: Re: [bug#48981] [PATCH 1/2] gnu: pre-commit: Update to 2.13.0. Message-ID: Mail-Followup-To: Efraim Flashner , Vinicius Monego , 48981-done@debbugs.gnu.org References: <20210612211933.785958-1-monego@posteo.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="okkK373bvTNrJaKV" Content-Disposition: inline In-Reply-To: <20210612211933.785958-1-monego@posteo.net> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48981-done Cc: 48981-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --okkK373bvTNrJaKV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks. Patches pushed! --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --okkK373bvTNrJaKV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmDFsWgACgkQQarn3Mo9 g1FYhA/9GlPDDzSfc6dxj/Bn60kE88uQ3GWAoFtuDZXN3Cr4Zi6GBKJTBig7o+SE kFsywQvPQPmH3QNyczztXT3aKvLyixKtt+LYoHKjCuiQs3R/3wFLI4MrLreJilNL mKUqC5pA69q7ysuQ8yLIm3r8wntheT4CCR9//CLiWyoLNQ2h3qyhjAwGY1GUMxxM 04Q3T9tbJsEGcTyoVZTCQzKofkshp0BNzr5CemYUUJpHoHVv9xD/LFBRhXuowbqI RAqs7OqwtqAxhSUqoEytNlVrAYgDDubTCAw9k5bk8VP0jZ2VXe3m6AL2pvTk20mD ijhW37QNkiZlEak+0gC+mIGFAnYg9MIg2s4jUiuSMCk1Tux+PopbLSWsgp3ggeBN ELZE6wA5GSrjpimAlvB1bczsvgS87u2CzCJlByLa0mZB/YMmFLe8uxC3+mFJ+Z1v eVSLQgs8eiwg9hn+b/I4Npq67fv/LxTYwYXjoIMVfTVLmD6Ikpbf/VlnBx6qop+L 3o+TbGQsB6X6XXrQnx1JVGSyhtM1uuBA4sPyYP0SzACeLBJjEys6SegjMe19uAfq xC6ieHD3ZVq1w8wz5ofPTz2gvVAezDDqj/u8eRwLWcxOODrqpIQ3mfrnRuoQjd5+ N3hnGvuzJjxoCb1MzufKwfDgLLZ0YVAZs99FR5CKXD7iQnLfEAg= =3akh -----END PGP SIGNATURE----- --okkK373bvTNrJaKV-- ------------=_1623568861-23198-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 12 Jun 2021 21:19:59 +0000 Received: from localhost ([127.0.0.1]:42217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB2t-0008GX-Gr for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:19:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:42518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB2r-0008GQ-Nw for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:19:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsB2r-0003Y0-Gu for guix-patches@gnu.org; Sat, 12 Jun 2021 17:19:57 -0400 Received: from mout01.posteo.de ([185.67.36.65]:35439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsB2p-0007La-2Y for guix-patches@gnu.org; Sat, 12 Jun 2021 17:19:57 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 4628E240027 for ; Sat, 12 Jun 2021 23:19:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1623532793; bh=aijHrnWyJallung2rym5O2TvqSLUocwvWq3KZYVZaQI=; h=From:To:Cc:Subject:Date:From; b=PZguxos3LwQvWTmgwXhrWmcIrz1bk7sGffTl8PNEGyj2Ox02ogCzLLNsar5evj8ak UYFSWFndYkDBUo3ZIQ33Sk42gWz1zj7uEFckN7dmntJvZRpIvzT9jGsYUN3FFqa4Lj vTDLw48uFt5Htxzg9TF5WGkW5NdtaqplpcBZJYhv2r4zwT7hl8WiUobjePALWT63zQ lnpkMXPTwFf4bzazoFKUUR8BoL8kF26+3jSU4g+bZCJNGisJGp0R2uP+Eki3fShznS Je8M2LiZj/Mq4OIfaWS79qF1Ird9dL9T2/qQOmFXiN8V7U2yZUROPtSHqqTv3+qpSE Siz4AwqZ4slNA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4G2VwR60nnz9rxL; Sat, 12 Jun 2021 23:19:51 +0200 (CEST) From: Vinicius Monego To: guix-patches@gnu.org Subject: [PATCH 1/2] gnu: pre-commit: Update to 2.13.0. Date: Sat, 12 Jun 2021 21:19:33 +0000 Message-Id: <20210612211933.785958-1-monego@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=monego@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Vinicius Monego X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/version-control.scm (pre-commit): Update to 2.13.0. [arguments]<#:phases>: Don't return #t. [synopsis]: Slightly shorten it. --- gnu/packages/version-control.scm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm index 5900779de8..9f5341b4f9 100644 --- a/gnu/packages/version-control.scm +++ b/gnu/packages/version-control.scm @@ -1520,7 +1520,7 @@ control to Git repositories.") (define-public pre-commit (package (name "pre-commit") - (version "2.12.1") + (version "2.13.0") (source (origin ;; No tests in the PyPI tarball. @@ -1530,7 +1530,7 @@ control to Git repositories.") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "0gwy5bnjnlj6yjcmghsibrcijvz9isxcygln7ihvi728p04rgymf")))) + (base32 "02lr8d6fkr32j4rpp2ac84a5gjwq16k1hb74j6js0kxg83qw6raf")))) (build-system python-build-system) (arguments `(#:phases @@ -1550,8 +1550,7 @@ control to Git repositories.") ;; Some tests will need a working git repository. (invoke "git" "init") (invoke "git" "config" "--global" "user.name" "Your Name") - (invoke "git" "config" "--global" "user.email" "you@example.com") - #t)) + (invoke "git" "config" "--global" "user.email" "you@example.com"))) (replace 'check (lambda* (#:key inputs outputs #:allow-other-keys) (add-installed-pythonpath inputs outputs) @@ -1579,8 +1578,7 @@ control to Git repositories.") ;; 'reset-gzip-timestamps' phase can do its work. (let ((out (assoc-ref outputs "out"))) (for-each make-file-writable - (find-files out "\\.gz$")) - #t)))))) + (find-files out "\\.gz$")))))))) (native-inputs `(("git" ,git-minimal) ("python-covdefaults" ,python-covdefaults) @@ -1599,7 +1597,7 @@ control to Git repositories.") ("python-toml" ,python-toml) ("python-virtualenv" ,python-virtualenv))) (home-page "https://pre-commit.com/") - (synopsis "Framework for managing and maintaining multi-language pre-commit hooks") + (synopsis "Framework for managing and maintaining pre-commit hooks") (description "Pre-commit is a multi-language package manager for pre-commit hooks. You specify a list of hooks you want and pre-commit manages the installation and -- 2.32.0 ------------=_1623568861-23198-1--