Merge "chore(tox): cleanup tox"
This commit is contained in:
commit
b8050a65ef
15
tox.ini
15
tox.ini
@ -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] Don’t put vim configuration in source files.
|
||||
|
Loading…
Reference in New Issue
Block a user