forked from rackerlabs/mimic
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
48 lines (41 loc) · 1.28 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
[tox]
envlist = py27, py34, py35, pypy, docs, lint, docs-spellcheck
[testenv]
deps =
--requirement={toxinidir}/requirements/production.txt
passenv = PIP_WHEEL_DIR PIP_FIND_LINKS PIP_NO_INDEX
commands =
coverage run -p {envbindir}/trial --rterrors {posargs:mimic}
[testenv:docs]
deps =
--requirement={toxinidir}/requirements/documentation.txt
basepython = python2.7
commands =
sphinx-build -W -b html -d {envtmpdir}/doctrees docs docs/_build/html
sphinx-build -W -b latex -d {envtmpdir}/doctrees docs docs/_build/latex
sphinx-build -W -b doctest -d {envtmpdir}/doctrees docs docs/_build/html
doc8 --allow-long-titles docs/
[testenv:docs-spellcheck]
deps =
{[testenv:docs]deps}
--requirement={toxinidir}/requirements/spellcheck.txt
basepython = python2.7
commands =
sphinx-build -W -b spelling docs docs/_build/html
[testenv:docs-linkcheck]
deps =
{[testenv:docs]deps}
basepython = python2.7
commands =
sphinx-build -W -b linkcheck docs docs/_build/html
[testenv:lint]
deps =
--requirement={toxinidir}/requirements/lint.txt
commands =
flake8 --ignore=W503 ./twisted ./mimic
pep257 --ignore=D400,D401,D200,D203,D204,D205 ./mimic ./twisted
[flake8]
exclude = docs,.tox,*.egg,*.pyc,.git,__pycache
max-line-length = 105
[doc8]
extensions = rst