blob: 11340f4d99b77c960b85fcf2576c61139056ca5a [file] [log] [blame]
Anthony Sottileb80ca9e2014-04-13 22:09:14 -07001[tox]
Anthony Sottile50a9fef2023-07-01 15:41:17 -04002envlist = py,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 Sottileef9755e2022-01-08 14:14:39 -050014 coverage report
Anthony Sottile9eb0d692019-04-28 16:21:10 -070015
16[testenv:pre-commit]
17skip_install = true
18deps = pre-commit
19commands = pre-commit run --all-files --show-diff-on-failure
Anthony Sottileb80ca9e2014-04-13 22:09:14 -070020
Anthony Sottilef138e342015-05-31 13:51:02 -070021[pep8]
Anthony Sottilec9f7b812019-01-29 22:09:54 -080022ignore=E265,E501,W504