diff options
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -15,7 +15,7 @@ | |||
15 | # https://tox.readthedocs.io/ | 15 | # https://tox.readthedocs.io/ |
16 | 16 | ||
17 | [tox] | 17 | [tox] |
18 | envlist = py36, py37, py38, py39, py310 | 18 | envlist = lint, py36, py37, py38, py39, py310 |
19 | 19 | ||
20 | [gh-actions] | 20 | [gh-actions] |
21 | python = | 21 | python = |
@@ -35,5 +35,23 @@ setenv = | |||
35 | GIT_COMMITTER_NAME = Repo test committer | 35 | GIT_COMMITTER_NAME = Repo test committer |
36 | EMAIL = repo@gerrit.nodomain | 36 | EMAIL = repo@gerrit.nodomain |
37 | 37 | ||
38 | [testenv:lint] | ||
39 | skip_install = true | ||
40 | deps = | ||
41 | black | ||
42 | flake8 | ||
43 | commands = | ||
44 | black --check {posargs:.} | ||
45 | flake8 | ||
46 | |||
47 | [testenv:format] | ||
48 | skip_install = true | ||
49 | deps = | ||
50 | black | ||
51 | flake8 | ||
52 | commands = | ||
53 | black {posargs:.} | ||
54 | flake8 | ||
55 | |||
38 | [pytest] | 56 | [pytest] |
39 | timeout = 300 | 57 | timeout = 300 |