Merge "chore(tox): cleanup tox"

This commit is contained in:
Zuul 2018-06-01 23:22:53 +00:00 committed by Gerrit Code Review
commit b8050a65ef
1 changed files with 11 additions and 4 deletions

15
tox.ini
View File

@ -1,4 +1,6 @@
[tox]
minversion = 2.3.1
skipsdist = True
envlist = py{35,27},py{35,27}-{postgresql},functional,cover,pep8,bandit,docs
[testenv]
@ -75,9 +77,7 @@ commands =
coverage report
[testenv:bandit]
whitelist_externals = bandit
commands =
bandit -r deckhand -x deckhand/tests -n 5
commands = bandit -r deckhand -x deckhand/tests -n 5
[testenv:genconfig]
commands = oslo-config-generator --config-file=etc/deckhand/config-generator.conf
@ -86,7 +86,14 @@ commands = oslo-config-generator --config-file=etc/deckhand/config-generator.con
commands = oslopolicy-sample-generator --config-file=etc/deckhand/policy-generator.conf
[testenv:pep8]
commands = flake8 {posargs}
deps =
.[bandit]
{[testenv]deps}
commands =
flake8 {posargs}
# Run security linter as part of the pep8 gate instead of using separate job.
bandit -r deckhand -x deckhand/tests -n 5
[flake8]
# [H106] Dont put vim configuration in source files.