-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
48 lines (40 loc) · 893 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
47
48
[tox]
envlist =
clean,
py38,
codecov
ignore_basepython_conflict = true
[testenv]
extras = tests
setenv =
PYTHONPATH={toxinidir}/tests
PYTHONUNBUFFERED=1
passenv =
*
deps =
pytest
pytest-cov
commands =
{posargs:pytest --cov --cov-report=term-missing -vv tests}
[testenv:linting]
skip_install = true
basepython = python3
deps = pre-commit>=2.20.0
commands = pre-commit run --all-files {posargs:}
[testenv:codecov]
whitelist_externals = coverage
deps = codecov
skip_install = true
commands = codecov []
coverage report
[testenv:clean]
deps = coverage
commands = coverage erase
skip_install = true
[testenv:docs]
description = Calls sphinx-build to generate HTML docs
basepython = python3
deps =
-r{toxinidir}/doc/en/requirements.txt
commands =
sphinx-build -b html {toxinidir}/doc/en {toxinidir}/doc/en/build