2015-08-03 18:24:39 +00:00
|
|
|
[tox]
|
2017-04-07 18:46:57 +00:00
|
|
|
envlist =
|
2019-06-23 20:23:23 +00:00
|
|
|
py{27,34,35,36,37}-sphinx{16,17,18},py{35,36,37}-sphinx{20,21}
|
2019-01-27 05:20:45 +00:00
|
|
|
formatting
|
2019-10-05 22:11:23 +00:00
|
|
|
lint
|
2017-04-07 19:01:17 +00:00
|
|
|
docs
|
2015-08-03 18:24:39 +00:00
|
|
|
|
2017-06-29 19:27:46 +00:00
|
|
|
[travis]
|
|
|
|
python =
|
|
|
|
2.7: py27
|
|
|
|
3.4: py34
|
|
|
|
3.5: py35
|
|
|
|
3.6: py36
|
2018-11-15 06:40:55 +00:00
|
|
|
3.7: py37
|
2017-06-29 19:27:46 +00:00
|
|
|
|
2015-08-03 18:24:39 +00:00
|
|
|
[testenv]
|
|
|
|
setenv =
|
|
|
|
LANG=C
|
2019-09-08 00:25:03 +00:00
|
|
|
extras =
|
|
|
|
dotnet
|
|
|
|
go
|
2015-08-03 18:24:39 +00:00
|
|
|
deps = -r{toxinidir}/requirements.txt
|
2016-11-02 23:29:28 +00:00
|
|
|
pytest
|
|
|
|
mock
|
2017-08-28 21:01:14 +00:00
|
|
|
sphinx16: Sphinx<1.7
|
2018-02-17 06:05:36 +00:00
|
|
|
sphinx17: Sphinx<1.8
|
2018-11-15 06:40:55 +00:00
|
|
|
sphinx18: Sphinx<1.9
|
2019-04-06 17:04:15 +00:00
|
|
|
sphinx20: Sphinx<2.1
|
2019-06-23 20:23:23 +00:00
|
|
|
sphinx21: Sphinx<2.2
|
2015-08-03 18:24:39 +00:00
|
|
|
commands =
|
2015-08-03 21:01:54 +00:00
|
|
|
py.test {posargs}
|
2015-08-03 18:24:39 +00:00
|
|
|
|
2019-01-27 05:20:45 +00:00
|
|
|
[testenv:formatting]
|
|
|
|
basepython = python3
|
2019-09-08 00:25:03 +00:00
|
|
|
skip_install = true
|
2016-06-08 23:34:52 +00:00
|
|
|
deps =
|
2019-03-30 18:47:11 +00:00
|
|
|
black
|
2015-08-03 18:24:39 +00:00
|
|
|
commands =
|
2019-01-27 05:20:45 +00:00
|
|
|
black --check autoapi tests
|
2015-08-03 18:24:39 +00:00
|
|
|
|
|
|
|
[testenv:lint]
|
2019-09-08 00:25:03 +00:00
|
|
|
skip_install = true
|
2015-08-03 18:24:39 +00:00
|
|
|
deps =
|
2019-10-05 22:11:23 +00:00
|
|
|
pylint~=2.4.2
|
2015-08-03 18:24:39 +00:00
|
|
|
commands =
|
2019-10-05 22:11:23 +00:00
|
|
|
pylint {posargs:autoapi}
|
2019-01-27 05:20:45 +00:00
|
|
|
|
|
|
|
[testenv:docs]
|
|
|
|
deps =
|
2019-06-23 20:23:23 +00:00
|
|
|
Sphinx>=2.1,<2.2
|
2019-01-27 05:20:45 +00:00
|
|
|
sphinx_rtd_theme
|
|
|
|
changedir = {toxinidir}/docs
|
|
|
|
commands =
|
2019-04-07 00:56:05 +00:00
|
|
|
sphinx-build -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
|