bump pre-commit-2.16.0
This commit is contained in:
parent
1cca7b03e5
commit
d4d5a0cf32
|
@ -1,3 +1,5 @@
|
|||
DIST pre-commit-2.14.0.tar.gz 253468 BLAKE2B fbd7045151f53d365c6241628e91161dcced52d2cdeb54fb4e7a5eaed56d3bd6dc691a4dbc891f09772ca8fab3e23b21611129ba2a9efe8d7b1584240bb4c4ad SHA512 79581767e28cef82dea604656b03ed99d7014299aa4f49e25b4ed53244d7b62c46193e25ba6add9189613a5d1517859ccc7208d7d7238674a0a1ce2ed29f131a
|
||||
DIST pre-commit-2.16.0.tar.gz 256930 BLAKE2B e515dcc9109c91cc7ab5ce60f662ebd62cce4f23e32676b7c295332c959fa10a34c320a197d15d7307b94aee53e7ade5da62aed8bbe122262db15d88d82e9757 SHA512 c9eb14a40e25e8408c2b2b5687eba4908d609bbb7bcf58a0153326696d272bca555156fd75f3ec5f0dec219aeeb4084df77f329f47cf190e40052c11e92fe185
|
||||
EBUILD pre-commit-2.14.0.ebuild 2089 BLAKE2B be856789c2a63790f0ea56a91dabf75f9e808b15f7c1d8e347e72cd097209c46d19496c176c707eec4299a2732415176286349cec08e764e05a2c73265fe51f1 SHA512 9f697bb93155a308769f4f2b52f6f9c7681b76755300c96c4d92d575e14d34151f9c33cd8fe5a79888edab526bcd886e867d9f8d8f1f4d3f18fc457944943fb9
|
||||
EBUILD pre-commit-2.16.0.ebuild 2089 BLAKE2B be856789c2a63790f0ea56a91dabf75f9e808b15f7c1d8e347e72cd097209c46d19496c176c707eec4299a2732415176286349cec08e764e05a2c73265fe51f1 SHA512 9f697bb93155a308769f4f2b52f6f9c7681b76755300c96c4d92d575e14d34151f9c33cd8fe5a79888edab526bcd886e867d9f8d8f1f4d3f18fc457944943fb9
|
||||
MISC metadata.xml 456 BLAKE2B 6b37832c4420e61dfc59240d3ed06a9eec654c3cf67d19999331f9a5dd3a518a0c7a5d6004ac0feec71ca7fb1478ab9523eb92bb679c5bc090ee9fb703403dde SHA512 0080d0fb37f16d7869a778025a26265b2b270387b1a19a57791c6f1f5f18f27dc01a3bf919d753450d2ea3e860457cd85ac6b7399049381b2f0b350ee5f7409a
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
PYTHON_COMPAT=( python3_{8..10} )
|
||||
DISTUTILS_SINGLE_IMPL=1
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_REQ_USE="sqlite"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A framework for managing and maintaining multi-language Git pre-commit hooks"
|
||||
HOMEPAGE="https://pre-commit.com/"
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 ~hppa ~ppc ~ppc64 ~x86"
|
||||
|
||||
# TODO: figure out why these tests - all of which invoke git - fail:
|
||||
# - tests/main_test.py::test_all_cmds[autoupdate,hook-impl,install,install-hooks,migrate-config,run,uninstall],
|
||||
# tests/main_test.py::test_try_repo:
|
||||
# Calling "git rev-parse" fails with "fatal: not a git repository (or any of the parent directories): .git".
|
||||
# NOT a sandbox issue it seems, as disabling it does not help.
|
||||
# - tests/commands/install_uninstall_test.py::test_environment_not_sourced:
|
||||
# Unexpected error "/usr/bin/env: 'python3.8': No such file or directory" - but only if pre-commit
|
||||
# has previously been installed.
|
||||
# - tests/commands/install_uninstall_test.py::test_installed_from_venv:
|
||||
# the function invoking "git commit" returns 1 instead of 0, no details.
|
||||
RESTRICT="test"
|
||||
|
||||
RDEPEND="dev-vcs/git
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/cfgv[${PYTHON_USEDEP}]
|
||||
dev-python/identify[${PYTHON_USEDEP}]
|
||||
dev-python/nodeenv[${PYTHON_USEDEP}]
|
||||
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||
dev-python/toml[${PYTHON_USEDEP}]
|
||||
>=dev-python/virtualenv-20.0.8[${PYTHON_USEDEP}]
|
||||
')"
|
||||
BDEPEND="test? (
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/pytest-env[${PYTHON_USEDEP}]
|
||||
dev-python/re-assert[${PYTHON_USEDEP}]
|
||||
')
|
||||
)"
|
||||
|
||||
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
|
||||
|
||||
distutils_enable_tests --install pytest
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# These tests require a boatload of dependencies (e.g. Conda, Go, R and more) in order to run
|
||||
# and while some of them do include "skip if not found" logic, most of them do not.
|
||||
rm -rf tests/languages tests/repository_test.py
|
||||
}
|
Loading…
Reference in New Issue