forked from click-contrib/sphinx-click
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
41 lines (35 loc) · 782 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
[tox]
minversion = 2.0
envlist = py{27,34,35,36,37,36-pre,37-pre,py}-click{6,7},style,docs
[testenv]
deps =
coverage>4.3,<5.0
click6: click>=6.0,<7.0
click7: click>=7.0,<8.0
commands =
coverage run --source={toxinidir}/sphinx_click -m unittest discover -s tests/
coverage report
pip_pre =
pre: true
[testenv:coverage]
commands =
{[testenv]commands}
coverage {posargs:html}
[testenv:style]
deps =
isort
yapf
flake8
commands =
isort -rc -c -df {toxinidir}/sphinx_click/
yapf -ri {toxinidir}/sphinx_click/
flake8 {toxinidir}/sphinx_click/
[coverage:run]
branch = True
[testenv:docs]
commands =
sphinx-build -W -b html -d docs/_build/doctrees docs docs/_build/html
[travis]
python =
2.7: py27, docs
3.6: py36, style