-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (42 loc) · 994 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
49
[tox]
envlist = lint, docs, flake8, py36, py37
[testenv:lint]
deps = pre-commit~=1.17
skip_install = true
commands = pre-commit run --all-files
[testenv]
deps= -r{toxinidir}/dev-requirements.txt
commands=
pip install .
nosetests []
setenv =
PYTHONWARNINGS=always::DeprecationWarning
passenv = TRAVIS
[testenv:flake8]
basepython = python3.6
deps=
flake8
commands=
flake8 --version
flake8 setup.py bonked
[testenv:docs]
basepython = python3.6
deps=
-r{toxinidir}/dev-requirements.txt
commands=
rm -rf {toxinidir}/docs/_build
make -C {toxinidir}/docs html
whitelist_externals=
rm
make
; Below tasks are for development only (not run in CI)
[testenv:watch-docs]
extras = docs
deps =
-rdocs/requirements.txt
sphinx-autobuild
commands = sphinx-autobuild --open-browser docs/ docs/_build {posargs} -s 2
[testenv:watch-readme]
deps = restview
skip_install = true
commands = restview README.rst