Skip to content

Commit c46ab0a

Browse files
committed
dev-vcs/pre-commit: add 3.7.0
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/3194 Signed-off-by: Andreas Billmeier <[email protected]>
1 parent d13b16e commit c46ab0a

File tree

3 files changed

+64
-2
lines changed

3 files changed

+64
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,11 +617,11 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
617617

618618
## Licenses
619619
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
620-
There are 2003 Ebuilds in total, 1992 of them have in total 2011 (42 different) licenses assigned.
620+
There are 2004 Ebuilds in total, 1993 of them have in total 2012 (42 different) licenses assigned.
621621

622622
|License| Ebuilds using it|
623623
|-------|-----|
624-
|MIT|1131|
624+
|MIT|1132|
625625
|Apache-2.0|462|
626626
|GPL-3|129|
627627
|BSD|113|

dev-vcs/pre-commit/Manifest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
AUX pre-commit-2.20.0-tests_git_file_transport.patch 2021 BLAKE2B 764b353d3268176162ae2a5d6fc97c0cb9ad7d2cd5de69f19f8fcd78c8bba507f25f53cd3d6c767fbcb9b9f885f8eceda2fc82d1b6ed54f34c1d4907d0fddd72 SHA512 6d8a3b5c9026f5c20a84d581ca92d74743643de010af468217b2f44324560d56b504e033ccebe102194492b25a01a4ed503995c222561ce406577fce211c2eab
22
AUX pre-commit-3.1.1-tests_git_file_transport.patch 1527 BLAKE2B 18d047f3b8a6fdc3da77aa5b8d9f60970ab5b69adc3790489ceffc17839a4cd21ed46428c5e2e98b50278b2c4dc49e35a09dd778000546828327ae96f910f95b SHA512 36cb194250dc0fefad2900452447ab590f678e6cd5edf07a7f072363733c263b7cb1167297c465a9372d4a38ab77a6c057046c66b872a958132a97d1a937d029
33
DIST pre-commit-3.6.2.gh.tar.gz 269614 BLAKE2B d927c8ac5024a09ffeba2cb728056c012ae2f6a9ea2acc3a62c9fb46360901804f56d745f4a6a4f33055caf079873507ba497d1cfa01d85a653f8702915826d3 SHA512 a99031e8e5f8b1bff05c8f5fa8d7fac4215d6d1828e8f64a35188345033a6982ce3673ebcf30883ce185e03f3f4179cdc620a383db65f914d0f6913973fc62ea
4+
DIST pre-commit-3.7.0.gh.tar.gz 269999 BLAKE2B 9ca1b2279e1ed753a09c3da83f6de19fc9b36821ba6f642962b9be1da29894e3260c48a2cdb582eb5331543fa6c7e9065d799fde7ab4e84dd54032c2ff84e4a7 SHA512 2a238e74ce2f080914e4403b7ce7b8dbd2a257a736d8292e2ec299c8015d3c4611e51f4be1a95ff2bd29db4888f6997e335346931567e943a8b5d78be7c14725
45
EBUILD pre-commit-3.6.2.ebuild 1930 BLAKE2B 262b74095ac6ad3483be5af6a86713980d3cda7933348b3415b990374b3cce705d572be5cb03a25e088a1f1e4dd1b3ac1e9bd0c1712072c6428f725368bb739f SHA512 1acb78c79d8147250c6004b3eefb1d804993cd1ce9f09817392fa9099e39902a09a7f346f3aa6183544f918d6672b87068322bd539b63805557c868be4c3990c
6+
EBUILD pre-commit-3.7.0.ebuild 1930 BLAKE2B 262b74095ac6ad3483be5af6a86713980d3cda7933348b3415b990374b3cce705d572be5cb03a25e088a1f1e4dd1b3ac1e9bd0c1712072c6428f725368bb739f SHA512 1acb78c79d8147250c6004b3eefb1d804993cd1ce9f09817392fa9099e39902a09a7f346f3aa6183544f918d6672b87068322bd539b63805557c868be4c3990c
57
MISC metadata.xml 519 BLAKE2B 7469b66ef61333b6a6c6b48a1c2ec373f0d3f75dc2b8cd5a9807bf26a72022c437b88b14907617317bab7c19c9a2300357c71dfe28b67828671bee0d59e1ccd2 SHA512 343867cf7f60f4456d9818ba7c0a652496c8c3ce1b5cca2b2be1510c2af793b062a4f3902d02f60c2874563bbd61691668370e25349c54ddc89aa5c425affc6d
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{11..12} )
7+
DISTUTILS_SINGLE_IMPL=1
8+
DISTUTILS_USE_PEP517=setuptools
9+
PYTHON_REQ_USE="sqlite"
10+
11+
inherit distutils-r1
12+
13+
DESCRIPTION="A framework for managing and maintaining multi-language Git pre-commit hooks"
14+
HOMEPAGE="https://pre-commit.com/"
15+
SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
16+
17+
LICENSE="MIT"
18+
SLOT="0"
19+
KEYWORDS="amd64 arm arm64 x86"
20+
21+
RDEPEND="dev-vcs/git
22+
$(python_gen_cond_dep '
23+
>=dev-python/cfgv-2.0.0[${PYTHON_USEDEP}]
24+
>=dev-python/identify-1.0.0[${PYTHON_USEDEP}]
25+
>=dev-python/nodeenv-0.11.1[${PYTHON_USEDEP}]
26+
>=dev-python/pyyaml-5.1[${PYTHON_USEDEP}]
27+
>=dev-python/virtualenv-20.10.0[${PYTHON_USEDEP}]
28+
')"
29+
# coreutils requirement: see Bug #885559
30+
BDEPEND="test? (
31+
$(python_gen_cond_dep '
32+
dev-python/pytest-env[${PYTHON_USEDEP}]
33+
dev-python/re-assert[${PYTHON_USEDEP}]
34+
')
35+
sys-apps/coreutils[-multicall]
36+
)"
37+
38+
PATCHES=(
39+
"${FILESDIR}"/${PN}-3.1.1-tests_git_file_transport.patch
40+
)
41+
42+
DOCS=( CHANGELOG.md CONTRIBUTING.md README.md )
43+
44+
EPYTEST_DESELECT=(
45+
# All of these require a boatload of dependencies (e.g. Conda, Go, R and more) in order to run
46+
# and while some of them do include "skip if not found" logic, most of them do not.
47+
tests/languages/
48+
tests/repository_test.py
49+
# These three consistently fail with
50+
# Calling "git rev-parse" fails with "fatal: not a git repository (or any of the parent directories): .git".
51+
# including with the sandbox disabled.
52+
tests/main_test.py::test_all_cmds
53+
tests/main_test.py::test_hook_stage_migration
54+
tests/main_test.py::test_try_repo
55+
# These two fail if pre-commit is already installed (Bug #894502)
56+
tests/commands/install_uninstall_test.py::test_environment_not_sourced
57+
tests/commands/install_uninstall_test.py::test_installed_from_venv
58+
)
59+
60+
distutils_enable_tests pytest

0 commit comments

Comments
 (0)