-
Notifications
You must be signed in to change notification settings - Fork 29
/
tox.ini
43 lines (39 loc) · 996 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
; a generative tox configuration, see: https://testrun.org/tox/latest/config.html#generative-envlist
[tox]
envlist =
check,
{3.6,3.7,3.8,3.9,3.10,pypy}-codecov,
report,
docs
[testenv]
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=yes
passenv =
*
usedevelop = false
deps =
-r{toxinidir}/requirements/test.txt
allowlist_externals =
codecov
commands =
{posargs:py.test --cov --cov-report=term-missing -vv tests}
codecov: coverage report
codecov: coverage html
codecov: coverage xml --ignore-errors
codecov: codecov -Z
[testenv:docs]
deps =
-r{toxinidir}/requirements/docs.txt
commands =
sphinx-build -a -E -W --keep-going -b html docs dist/docs
sphinx-build -b doctest docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[testenv:check]
deps =
-r{toxinidir}/requirements/check.txt
commands =
python setup.py check --strict --metadata
check-manifest {toxinidir}
flake8
pylint src/watchmaker