Skip to content

Commit d96c06f

Browse files
committed
Clean up the Tox config a bit more
1 parent 0153229 commit d96c06f

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

tox.ini

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ basepython = python3.8
1717
deps =
1818
idna==2.9
1919

20-
test: typing==3.7.4.1
21-
test: {[testenv:coverage_report]deps}
22-
test-{py26,py27,py34}: pytest==4.6.9
23-
test-{py35,py36,py37,py38}: pytest==5.2.4
24-
test: pytest-cov==2.8.1
25-
2620
setenv =
2721
PY_MODULE=hyperlink
2822

@@ -50,15 +44,27 @@ basepython =
5044
pypy2: pypy
5145
pypy3: pypy3
5246

53-
deps = {[default]deps}
47+
deps =
48+
{[default]deps}
49+
50+
# In Python 2, we need to pull in typing
51+
{py26,py27}: typing==3.7.4.1
52+
53+
# For pytest
54+
{py26,py27,py34}: pytest==4.6.9
55+
{py35,py36,py37,py38}: pytest==5.2.4
56+
57+
# For code coverage
58+
{[testenv:coverage_report]deps}
59+
pytest-cov==2.8.1
5460

5561
setenv =
5662
{[default]setenv}
5763

58-
test: COVERAGE_FILE={toxworkdir}/coverage.{envname}
64+
COVERAGE_FILE={toxworkdir}/coverage.{envname}
5965

6066
commands =
61-
test: pytest --cov={env:PY_MODULE} --cov-report=term-missing:skip-covered --doctest-modules {posargs:src/{env:PY_MODULE}}
67+
pytest --cov={env:PY_MODULE} --cov-report=term-missing:skip-covered --doctest-modules {posargs:src/{env:PY_MODULE}}
6268

6369

6470
##

0 commit comments

Comments
 (0)