-
Notifications
You must be signed in to change notification settings - Fork 4
/
tox.ini
39 lines (36 loc) · 883 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
[tox]
envlist = py27, py38, style, docs
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/pyline
PYTHONHASHSEED = 3000
commands =
python setup.py test
deps =
pytest-cov
-r{toxinidir}/requirements.txt
[testenv:style]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/pyline
PYTHONHASHSEED = 3000
deps =
-r{toxinidir}/requirements.txt
flake8
commands =
# flake8 ./pyline --exit-zero
# flake8 ./tests --exit-zero
# flake8 ./scripts --exit-zero
#python setup.py flake8
flake8 ./pyline --exit-zero
[testenv:docs]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/pyline
PYTHONHASHSEED = 3000
changedir = {toxinidir}/docs/
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/docs/requirements.txt
commands =
/usr/bin/make html
#sphinx-build -b linkcheck ./ _build/
#sphinx-build -b html ./ ./_build/