-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtox.ini
38 lines (33 loc) · 842 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
[tox]
envlist = py{36,37,38,39},doc,lint
skip_missing_interpreters = true
import_name = redux
[travis]
python =
3.6: py36,doc,lint
3.7: py37,doc,lint
3.8: py38,doc,lint
3.9: py39,doc,lint
[pytest]
addopts = -s
junit_family = xunit1
junit_logging = all
[testenv:lint]
basepython = python3.8
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
{envpython} -m pylint {[tox]import_name}
[testenv:doc]
deps=
-r{toxinidir}/docs/requirements.txt
-r{toxinidir}/requirements.txt
commands =
sphinx-apidoc -o "{toxinidir}/docs/source" "{toxinidir}/{[tox]import_name}" --force
sphinx-build "{toxinidir}/docs/source" "{toxinidir}/build/docs" -b html
[testenv]
deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = {envpython} -m pytest