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
|
[tox]
minversion = 2.0
envlist = py{27,34,35,36,py},style
[testenv]
deps = -r{toxinidir}/test-requirements.txt
commands=
pytest
[testenv:mypy]
description =
Run type checks.
deps =
mypy
commands=
mypy sphinxcontrib
[testenv:style]
description =
Run style checks.
deps =
flake8
isort
yapf
doc8
commands =
isort -rc -c -df sphinxcontrib tests
yapf -rd sphinxcontrib tests
flake8 sphinxcontrib tests setup.py
doc8 -q README.rst
[travis]
python =
2.7: py27, style
3.6: py36, mypy
|