app-shells/autojump: Drop dependency on pre-commit

Thanks to Eli Schwartz for pointing this out.

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2025-02-28 10:05:57 -05:00
parent 1fe7939d72
commit f34db91b71
2 changed files with 32 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -21,16 +21,13 @@ REQUIRED_USE="ipython? ( ${PYTHON_REQUIRED_USE} )"
RESTRICT="!test? ( test )"
RDEPEND="ipython? ( ${PYTHON_DEPS} )"
DEPEND="${PYTHON_DEPS}
test? (
>=dev-vcs/pre-commit-0.7.0[${PYTHON_SINGLE_USEDEP}]
)
"
DEPEND="${PYTHON_DEPS}"
distutils_enable_tests pytest
PATCHES=(
"${FILESDIR}"/${PV}-Use-mock-from-unittest.patch
"${FILESDIR}"/${PV}-Drop-pre-commit.patch
)
src_prepare() {

View File

@@ -0,0 +1,29 @@
From c625811d9a080a3b27c62cdbc05dbc0ff6b73855 Mon Sep 17 00:00:00 2001
From: Matt Turner <mattst88@gmail.com>
Date: Fri, 28 Feb 2025 10:02:30 -0500
Subject: [PATCH] Drop pre-commit
---
tox.ini | 7 -------
1 file changed, 7 deletions(-)
diff --git ./tox.ini ./tox.ini
index 8a21b97..0f08577 100644
--- ./tox.ini
+++ ./tox.ini
@@ -22,12 +22,5 @@ commands =
py.test -vv -rxs --tb native -s --strict {posargs:tests}
coverage report -m
-
-[testenv:pre-commit]
-deps =
- pre-commit>=0.7.0
-commands =
- pre-commit {posargs}
-
[pytest]
norecursedirs = .git .tox docs
--
2.45.3