-
Notifications
You must be signed in to change notification settings - Fork 11
/
tox.ini
46 lines (41 loc) · 1002 Bytes
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
[tox]
envlist = clean, check, py{36,37,38,py}, report
[testenv]
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv = *
deps =
-rrequirements.txt
-rtest-requirements.txt
commands =
{posargs:py.test --cov --cov-report=term-missing -vv tests/}
[testenv:docs]
deps = -r{toxinidir}/docs/requirements.txt
commands =
sphinx-build {posargs:-E} -b doctest docs dist/docs
sphinx-build {posargs:-E} -b html docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[testenv:check]
deps =
docutils
flake8
isort
pygments
readme-renderer
skip_install = true
commands =
python setup.py check --strict --metadata --restructuredtext
flake8 pymaven/ tests/ setup.py
isort --verbose --check-only --diff pymaven/ tests/ setup.py
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[testenv:report]
deps = coverage
skip_install = true
commands =
coverage combine --append
coverage report
coverage html