forked from sphinx-contrib/sphinxcontrib-versioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
86 lines (78 loc) · 1.79 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[general]
install_requires =
click==6.6
colorclass==2.2.0
sphinx==1.4.8
name = sphinxcontrib
[tox]
envlist = lint,py{37,36,35,27}
skip_missing_interpreters = True
[testenv]
commands =
py.test --cov-report term-missing --cov-report xml --cov {[general]name} --cov-config tox.ini {posargs:tests}
deps =
{[general]install_requires}
pytest==3.2.5
pytest-catchlog==1.2.2
pytest-cov==2.4.0
sphinx_rtd_theme==0.1.10a0
passenv =
HOME
usedevelop = True
[testenv:lint]
commands =
python setup.py check --strict
python setup.py check --strict -m
python setup.py check --strict -s
python setup.py check_version
flake8 --application-import-names={[general]name},tests
pylint --rcfile=tox.ini setup.py {[general]name}
deps =
{[general]install_requires}
flake8-docstrings==1.4.0
flake8-import-order==0.18
flake8==3.7.8
pep8-naming==0.8.2
pylint==2.3.1
[testenv:docs]
changedir = {toxinidir}/docs
commands =
sphinx-build -W . _build/html {posargs}
deps =
{[general]install_requires}
robpol86-sphinxcontrib-googleanalytics==0.1
sphinx-rtd-theme==0.1.10a0
usedevelop = False
[testenv:docsV]
commands =
sphinx-versioning push docs gh-pages .
deps =
{[testenv:docs]deps}
passenv =
HOME
HOSTNAME
SSH_AUTH_SOCK
TRAVIS*
USER
usedevelop = False
[flake8]
exclude = .tox/*,build/*,docs/*,env/*,get-pip.py
ignore = D301,D401
import-order-style = smarkets
max-line-length = 120
statistics = True
[pylint]
disable =
too-few-public-methods,
too-many-instance-attributes,
unnecessary-pass,
unsubscriptable-object,
useless-object-inheritance,
trailing-comma-tuple,
arguments-differ,
ignore = .tox/*,build/*,docs/*,env/*,get-pip.py
max-args = 6
max-line-length = 120
reports = no
[run]
branch = True