forked from readthedocs/sphinx-autoapi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
54 lines (49 loc) · 876 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
42
43
44
45
46
47
48
49
50
51
52
53
54
[tox]
envlist =
py{27,34,35,36,37}-sphinx{16,17,18},py{35,36,37}-sphinx{20,21}
formatting
lint
docs
[travis]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36
3.7: py37
[testenv]
setenv =
LANG=C
extras =
dotnet
go
deps = -r{toxinidir}/requirements.txt
pytest
mock
sphinx16: Sphinx<1.7
sphinx17: Sphinx<1.8
sphinx18: Sphinx<1.9
sphinx20: Sphinx<2.1
sphinx21: Sphinx<2.2
commands =
py.test {posargs}
[testenv:formatting]
basepython = python3
skip_install = true
deps =
black
commands =
black --check autoapi tests
[testenv:lint]
skip_install = true
deps =
pylint~=2.4.2
commands =
pylint {posargs:autoapi}
[testenv:docs]
deps =
Sphinx>=2.1,<2.2
sphinx_rtd_theme
changedir = {toxinidir}/docs
commands =
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html