From: Marius Bakke <marius@gnu.org>
To: Vinicius Monego <monego@posteo.net>, 42087@debbugs.gnu.org
Cc: Vinicius Monego <monego@posteo.net>
Subject: [bug#42087] [PATCH 6/6] gnu: Add python-pre-commit.
Date: Mon, 20 Jul 2020 23:36:41 +0200 [thread overview]
Message-ID: <87o8o9hnrq.fsf@gnu.org> (raw)
In-Reply-To: <20200627154645.64264-6-monego@posteo.net>
[-- Attachment #1: Type: text/plain, Size: 2078 bytes --]
Vinicius Monego <monego@posteo.net> writes:
> * gnu/packages/python-xyz.scm (python-pre-commit): New variable.
[...]
> +(define-public python-pre-commit
> + (package
> + (name "python-pre-commit")
> + (version "2.5.1")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "pre_commit" version))
> + (sha256
> + (base32 "1ivl921kdk9wga2cix4j9ydvs3dryqaaayq496pzjmz2y3w3qins"))))
> + (build-system python-build-system)
> + (arguments
> + `(#:tests? #f)) ;tests require python-tox >= 3.13
Do they really require Tox directly? Tox is fairly redundant in Guix,
as all it does is create an isolated environment for running tests,
which Guix already does. So the usual approach is to copy the command
for running tests out of tox.ini and run it directly in the check
phase. Is that an option here?
> + (propagated-inputs
> + `(("python-cfgv" ,python-cfgv)
> + ("python-identify" ,python-identify)
> + ("python-nodeenv" ,python-nodeenv)
> + ("python-pyyaml" ,python-pyyaml)
> + ("python-toml" ,python-toml)
> + ("python-virtualenv" ,python-virtualenv)))
Does this program produce a regular executable? I.e. it's not intended
for use as a library? In that case you can simply add these as regular
inputs, and the executable will be "wrapped" with the correct
PYTHONPATH.
Also, maybe we can omit the python- prefix here too, and perhaps place
it in version-control.scm?
> + (home-page "https://pre-commit.com/")
> + (synopsis "Framework for managing and maintaining multi-language 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
> +execution of any hook written in any language before every commit.")
Woow, a package manager for pre-commit hooks, amazing. LGTM. :-)
Can you send a v2 series? By the way, great job at enabling tests for
the other packages.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
next prev parent reply other threads:[~2020-07-20 21:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-27 15:46 [bug#42082] [PATCH 1/6] gnu: Add python-covdefaults Vinicius Monego
2020-06-27 15:46 ` [bug#42083] [PATCH 2/6] gnu: Add python-cfgv Vinicius Monego
2020-07-20 21:17 ` Marius Bakke
2020-06-27 15:46 ` [bug#42084] [PATCH 3/6] gnu: Add python-identify Vinicius Monego
2020-07-20 21:17 ` Marius Bakke
2020-06-27 15:46 ` [bug#42085] [PATCH 4/6] gnu: Add python-nodeenv Vinicius Monego
2020-07-20 21:25 ` Marius Bakke
2020-07-21 18:42 ` Vinicius Monego
2020-06-27 15:46 ` [bug#42086] [PATCH 5/6] gnu: Add python-pytest-env Vinicius Monego
2020-07-20 21:27 ` Marius Bakke
2020-06-27 15:46 ` [bug#42087] [PATCH 6/6] gnu: Add python-pre-commit Vinicius Monego
2020-07-20 21:36 ` Marius Bakke [this message]
2020-07-21 18:57 ` Vinicius Monego
2020-07-20 21:13 ` [bug#42082] [PATCH 1/6] gnu: Add python-covdefaults Marius Bakke
2020-07-21 18:28 ` Vinicius Monego
2020-07-21 21:48 ` Marius Bakke
2020-07-24 12:01 ` [bug#42082] [PATCH v2 " Vinicius Monego
2020-07-24 12:01 ` [bug#42082] [PATCH v2 2/6] gnu: Add python-cfgv Vinicius Monego
2020-07-24 12:01 ` [bug#42082] [PATCH v2 3/6] gnu: Add python-identify Vinicius Monego
2020-07-25 16:33 ` Marius Bakke
2020-07-24 12:01 ` [bug#42082] [PATCH v2 4/6] gnu: Add python-nodeenv Vinicius Monego
2020-07-24 12:01 ` [bug#42082] [PATCH v2 5/6] gnu: Add python-pytest-env Vinicius Monego
2020-07-24 12:01 ` [bug#42082] [PATCH v2 6/6] gnu: Add python-pre-commit Vinicius Monego
2020-07-25 16:38 ` bug#42082: " Marius Bakke
2020-07-25 2:21 ` [bug#42082] [PATCH 1/6] gnu: Add python-covdefaults Brett Gilio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o8o9hnrq.fsf@gnu.org \
--to=marius@gnu.org \
--cc=42087@debbugs.gnu.org \
--cc=monego@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).