forked from twisted/tubes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
60 lines (52 loc) · 1.73 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 = py27, pypy, docs, lint, apidocs
[testenv]
deps =
coverage
commands =
coverage run -p --source=./tubes {envbindir}/trial --rterrors {posargs:tubes}
[testenv:docs]
deps =
doc8
pygments
sphinx
sphinx_rtd_theme
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
doc8 --ignore D000 --ignore D001 --allow-long-titles docs/
[testenv:apidocs]
deps =
nevow
epydoc
git+git://github.com/twisted/pydoctor.git
commands =
pydoctor -q --system-class pydoctor.twistedmodel.TwistedSystem --project-name twisted --add-package {envsitepackagesdir}/twisted -o twisted.system
pydoctor -q --prepend-package zope --project-name zope.interface --add-package {envsitepackagesdir}/zope/interface -o zope.interface.system
python .failonoutput.py "pydoctor -q --system-class pydoctor.twistedmodel.TwistedSystem --project-name tubes --extra-system=zope.interface.system:https://zope.org/ --extra-system=twisted.system:https://twistedmatrix.com/ tubes"
[testenv:docs-spellcheck]
deps =
{[testenv:docs]deps}
pyenchant
sphinxcontrib-spelling
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 =
git+https://github.com/twisted/twistedchecker
commands =
# pep257 --ignore=D400,D401,D200,D203,D204,D205 ./tubes
python .failonoutput.py "twistedchecker -f parseable ./tubes"
[flake8]
exclude = docs,.tox,*.egg,*.pyc,.git,__pycache
max-line-length = 105
[doc8]
extensions = rst