Skip to content

Commit 6508746

Browse files
committed
Move linting to a separate tox env
We don't need to lint the code with every version of Python, instead add an extra tox env which lints once with the latest supported Python version Signed-off-by: Joshua Lock <jlock@vmware.com>
1 parent a3cc3b5 commit 6508746

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

tox.ini

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27, py35, py36, py37, py38
7+
envlist = lint,py{27,35,36,37,38}
88
skipsdist = true
99

1010
[testenv]
@@ -14,8 +14,6 @@ skipsdist = true
1414
changedir = tests
1515

1616
commands =
17-
pylint {toxinidir}/tuf --ignore={toxinidir}/tuf/api
18-
pylint {toxinidir}/tuf/api --rcfile={toxinidir}/tuf/api/pylintrc
1917
bandit -r {toxinidir}/tuf
2018
coverage run aggregate_tests.py
2119
coverage report -m --fail-under 97
@@ -40,3 +38,8 @@ deps =
4038
commands =
4139
coverage run aggregate_tests.py
4240
coverage report -m
41+
42+
[testenv:lint]
43+
commands =
44+
pylint {toxinidir}/tuf --ignore={toxinidir}/tuf/api
45+
pylint {toxinidir}/tuf/api --rcfile={toxinidir}/tuf/api/pylintrc

0 commit comments

Comments
 (0)