-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (56 loc) · 1.11 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
[tox]
envlist = docs,coverage,.python{36,37,38,39}
[testenv]
usedevelop = True
description =
.python{36,37,38,39}: Run unit tests against {envname}.
passenv = TOXENV CI TRAVIS TRAVIS_*
deps =
pytest
coverage
codecov
pytest-cov
pytest-xdist
validator-collection
requests
backoff-utils
commands =
pytest {posargs}
codecov -e TOXENV
[testenv:pylint]
description =
Run source code analyzer.
deps =
pylint
{[testenv]deps}
commands =
pylint --rcfile {toxinidir}/.pylintrc census-geocoder
[testenv:coverage]
description =
Run code coverage checks.
setenv =
PYTEST_ADDOPTS = --cov ./census_geocoder --cov-config {toxinidir}/setup.cfg
deps =
pytest
pytest-cov
pytest-xdist
coverage
codecov
validator-collection
backoff-utils
requests
commands =
{[testenv]commands}
coverage report
[testenv:docs]
description =
Build documentation.
basepython = python
changedir = docs
deps =
Sphinx >= 4.1.2
sphinx-rtd-theme >= 0.5.2
sphinx-tabs >= 3.2.0
sphinx-panels >= 0.6.0
commands =
sphinx-build -nT -b dummy . _build/html