Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 1 | [tox] |
Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 2 | # These should match the travis env list |
Anthony Sottile | c9899ab | 2018-07-08 08:20:50 -0700 | [diff] [blame] | 3 | envlist = py27,py36,py37,pypy |
Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 4 | |
| 5 | [testenv] |
Anthony Sottile | 59f23b7 | 2014-06-05 09:09:21 -0700 | [diff] [blame] | 6 | deps = -rrequirements-dev.txt |
Anthony Sottile | 3a3a7a1 | 2015-12-25 09:37:18 -0800 | [diff] [blame] | 7 | passenv = HOME HOMEPATH PROGRAMDATA |
alzeih | 0637a50 | 2016-12-02 12:35:28 +1300 | [diff] [blame] | 8 | setenv = |
| 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 Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 13 | commands = |
| 14 | coverage erase |
| 15 | coverage run -m pytest {posargs:tests} |
Anthony Sottile | 8ad9e7c | 2017-07-05 12:38:21 -0700 | [diff] [blame] | 16 | coverage report --fail-under 100 |
Anthony Sottile | 3a3a7a1 | 2015-12-25 09:37:18 -0800 | [diff] [blame] | 17 | pre-commit install -f --install-hooks |
| 18 | pre-commit run --all-files |
Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 19 | |
Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 20 | [flake8] |
| 21 | max-line-length=131 |
Anthony Sottile | f138e34 | 2015-05-31 13:51:02 -0700 | [diff] [blame] | 22 | |
| 23 | [pep8] |
Anthony Sottile | c9f7b81 | 2019-01-29 22:09:54 -0800 | [diff] [blame^] | 24 | ignore=E265,E501,W504 |