blob: a6b3fb4df29c309613ada643ac0757ccdd8b8171 [file] [log] [blame]
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07001[tox]
Anthony Sottile9eb0d692019-04-28 16:21:10 -07002envlist = py27,py36,py37,pypy,pypy3,pre-commit
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07003
4[testenv]
Anthony Sottile59f23b72014-06-05 09:09:21 -07005deps = -rrequirements-dev.txt
alzeih0637a502016-12-02 12:35:28 +13006setenv =
7 GIT_AUTHOR_NAME = "test"
8 GIT_COMMITTER_NAME = "test"
9 GIT_AUTHOR_EMAIL = "test@example.com"
10 GIT_COMMITTER_EMAIL = "test@example.com"
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070011commands =
12 coverage erase
13 coverage run -m pytest {posargs:tests}
Anthony Sottile8ad9e7c2017-07-05 12:38:21 -070014 coverage report --fail-under 100
Anthony Sottile9eb0d692019-04-28 16:21:10 -070015 pre-commit install
16
17[testenv:pre-commit]
18skip_install = true
19deps = pre-commit
20commands = pre-commit run --all-files --show-diff-on-failure
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070021
Anthony Sottilef138e342015-05-31 13:51:02 -070022[pep8]
Anthony Sottilec9f7b812019-01-29 22:09:54 -080023ignore=E265,E501,W504