Merge "pre-commit: Integrate bandit"
This commit is contained in:
commit
33244f6aae
@ -23,3 +23,8 @@ repos:
|
||||
hooks:
|
||||
- id: hacking
|
||||
additional_dependencies: []
|
||||
- repo: https://github.com/PyCQA/bandit
|
||||
rev: 1.7.6
|
||||
hooks:
|
||||
- id: bandit
|
||||
args: ['-x', 'tests']
|
||||
|
@ -1,10 +1,6 @@
|
||||
hacking>=6.1.0,<6.2.0 # Apache-2.0
|
||||
oslotest>=3.2.0 # Apache-2.0
|
||||
pifpaf>=0.10.0 # Apache-2.0
|
||||
# Bandit security code scanner
|
||||
bandit>=1.7.0,<1.8.0 # Apache-2.0
|
||||
stestr>=2.0.0 # Apache-2.0
|
||||
pre-commit>=2.6.0 # MIT
|
||||
pymemcache>=3.5.0 # Apache-2.0
|
||||
python-binary-memcached>=0.29.0 # MIT
|
||||
python-memcached>=1.56 # PSF
|
||||
|
5
tox.ini
5
tox.ini
@ -20,11 +20,10 @@ commands =
|
||||
pifpaf -e OSLO_CACHE_TEST run {env:PIFPAF_DAEMON} -- stestr run --slowest
|
||||
|
||||
[testenv:pep8]
|
||||
deps = {[testenv]deps}
|
||||
deps =
|
||||
pre-commit
|
||||
commands =
|
||||
pre-commit run -a
|
||||
# Run security linter
|
||||
bandit -r oslo_cache -x tests -n5
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
Loading…
Reference in New Issue
Block a user