blob: 9be38dd84faf0b49c18954e5d5f8dc782147fa35 [file]
# content of: tox.ini , put in same dir as setup.py
[tox]
minversion=1.8.dev1
envlist = py{26,27,34,35,36,37,38}
[testenv]
cov_args=--cov=mako --cov-report term --cov-report xml
deps=pytest
mock
beaker
markupsafe
pygments
babel
dogpile.cache
lingua<4
cov: pytest-cov
setenv=
cov: COVERAGE={[testenv]cov_args}
commands=py.test {env:COVERAGE:} {posargs}
# thanks to https://julien.danjou.info/the-best-flake8-extensions/
[testenv:pep8]
basepython = python3.7
deps=
flake8
flake8-import-order
flake8-builtins
flake8-docstrings
flake8-rst-docstrings
# used by flake8-rst-docstrings
pygments
commands = flake8 ./mako/ ./test/ setup.py --exclude test/templates,test/foo