-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtox.ini
58 lines (50 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
49
50
51
52
53
54
55
56
57
58
[tox]
envlist = py38, py310, py311, py312, pypy, docs, lint, apidocs, docs-spellcheck
[testenv]
passenv = *
deps =
coverage
commands =
coverage run -p {envbindir}/trial --rterrors {posargs:tubes}
[testenv:docs]
deps =
doc8
pygments
pydoctor
sphinx!=1.6.1
sphinx_rtd_theme
commands =
sphinx-build -vvv -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:docs-spellcheck]
deps =
{[testenv:docs]deps}
pyenchant
sphinxcontrib-spelling
commands =
sphinx-build -W -b spelling docs docs/_build/html
[testenv:docs-linkcheck]
deps =
{[testenv:docs]deps}
commands =
sphinx-build -W -b linkcheck docs docs/_build/html
[testenv:lint]
deps =
twistedchecker==0.7.2
commands =
# pep257 --ignore=D400,D401,D200,D203,D204,D205 ./tubes
python .failonoutput.py "twistedchecker --msg-template=\{path\}:\{line\}:\{column\}:\ [\{msg_id\}\(\{symbol\}\),\ \{obj\}]\ \{msg\} ./tubes"
[testenv:coveralls-push]
deps =
coveralls
coverage
commands =
coverage combine
coverage report
coveralls
[flake8]
exclude = docs,.tox,*.egg,*.pyc,.git,__pycache
max-line-length = 105
[doc8]
extensions = rst