Merge "Move bandit to pre-commit"

This commit is contained in:
Zuul 2024-08-02 17:17:57 +00:00 committed by Gerrit Code Review
commit 9682ebcf48
2 changed files with 5 additions and 2 deletions

View File

@ -32,6 +32,11 @@ repos:
hooks:
- id: black
args: ['-S', '-l', '79']
- repo: https://github.com/PyCQA/bandit
rev: '1.7.9'
hooks:
- id: bandit
args: ["-x", "keystone/tests/*,devstack/*"]
# - repo: https://opendev.org/openstack/hacking
# rev: 6.1.0
# hooks:

View File

@ -29,8 +29,6 @@ commands =
# Run bash8 during pep8 runs to ensure violations are caught by
# the check and gate queues
bashate devstack/plugin.sh
# Run security linter
bandit -r keystone -x 'keystone/tests/*'
[testenv:fast8]
envdir = {toxworkdir}/pep8