Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 1 | [tox] |
Anthony Sottile | 50a9fef | 2023-07-01 15:41:17 -0400 | [diff] [blame] | 2 | envlist = py,pre-commit |
Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 3 | |
| 4 | [testenv] |
Anthony Sottile | 59f23b7 | 2014-06-05 09:09:21 -0700 | [diff] [blame] | 5 | deps = -rrequirements-dev.txt |
alzeih | 0637a50 | 2016-12-02 12:35:28 +1300 | [diff] [blame] | 6 | setenv = |
| 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 Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 11 | commands = |
| 12 | coverage erase |
| 13 | coverage run -m pytest {posargs:tests} |
Anthony Sottile | ef9755e | 2022-01-08 14:14:39 -0500 | [diff] [blame] | 14 | coverage report |
Anthony Sottile | 9eb0d69 | 2019-04-28 16:21:10 -0700 | [diff] [blame] | 15 | |
| 16 | [testenv:pre-commit] |
| 17 | skip_install = true |
| 18 | deps = pre-commit |
| 19 | commands = pre-commit run --all-files --show-diff-on-failure |
Anthony Sottile | b80ca9e | 2014-04-13 22:09:14 -0700 | [diff] [blame] | 20 | |
Anthony Sottile | f138e34 | 2015-05-31 13:51:02 -0700 | [diff] [blame] | 21 | [pep8] |
Anthony Sottile | c9f7b81 | 2019-01-29 22:09:54 -0800 | [diff] [blame] | 22 | ignore=E265,E501,W504 |