Skip to content

Commit 1a27fd5

Browse files
authored
Split the test dependencies into four classes (test, cover, type, check). (jaraco/skeleton#139)
1 parent 3841656 commit 1a27fd5

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

pyproject.toml

+20-5
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,10 @@ Source = "https://github.com/PROJECT_PATH"
2828
test = [
2929
# upstream
3030
"pytest >= 6, != 8.1.*",
31-
"pytest-checkdocs >= 2.4",
32-
"pytest-cov",
33-
"pytest-mypy",
34-
"pytest-enabler >= 2.2",
35-
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
3631

3732
# local
3833
]
34+
3935
doc = [
4036
# upstream
4137
"sphinx >= 3.5",
@@ -47,4 +43,23 @@ doc = [
4743
# local
4844
]
4945

46+
check = [
47+
"pytest-checkdocs >= 2.4",
48+
"pytest-ruff >= 0.2.1; sys_platform != 'cygwin'",
49+
]
50+
51+
cover = [
52+
"pytest-cov",
53+
]
54+
55+
enabler = [
56+
"pytest-enabler >= 2.2",
57+
]
58+
59+
type = [
60+
"pytest-mypy",
61+
]
62+
63+
64+
5065
[tool.setuptools_scm]

tox.ini

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ commands =
88
usedevelop = True
99
extras =
1010
test
11+
check
12+
cover
13+
enabler
14+
type
1115

1216
[testenv:diffcov]
1317
description = run tests and check that diff from main is covered

0 commit comments

Comments
 (0)