blob: c131e6f0b582af8f8fc32a48151df67a675dcbd3 [file] [log] [blame]
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07001[tox]
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07002# These should match the travis env list
Anthony Sottilec9899ab2018-07-08 08:20:50 -07003envlist = py27,py36,py37,pypy
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07004
5[testenv]
Anthony Sottile59f23b72014-06-05 09:09:21 -07006deps = -rrequirements-dev.txt
Anthony Sottile3a3a7a12015-12-25 09:37:18 -08007passenv = HOME HOMEPATH PROGRAMDATA
alzeih0637a502016-12-02 12:35:28 +13008setenv =
9 GIT_AUTHOR_NAME = "test"
10 GIT_COMMITTER_NAME = "test"
11 GIT_AUTHOR_EMAIL = "test@example.com"
12 GIT_COMMITTER_EMAIL = "test@example.com"
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070013commands =
14 coverage erase
15 coverage run -m pytest {posargs:tests}
Anthony Sottile8ad9e7c2017-07-05 12:38:21 -070016 coverage report --fail-under 100
Anthony Sottile3a3a7a12015-12-25 09:37:18 -080017 pre-commit install -f --install-hooks
18 pre-commit run --all-files
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070019
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070020[flake8]
21max-line-length=131
Anthony Sottilef138e342015-05-31 13:51:02 -070022
23[pep8]
Anthony Sottilec9f7b812019-01-29 22:09:54 -080024ignore=E265,E501,W504