Remove unused bandit target
This has been unused since bandit was moved to PyCQA organization. Also maintain bandit options in pyproject.toml so that these can be used by different tools more easily. Change-Id: I7d16d6e58666a943677a18fcc19f66c7bb7a2c8c Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -32,7 +32,7 @@ repos:
|
||||
rev: '1.8.3'
|
||||
hooks:
|
||||
- id: bandit
|
||||
args: ["-x", "keystone/tests/*,devstack/*"]
|
||||
args: ['-c', 'pyproject.toml']
|
||||
- repo: https://opendev.org/openstack/hacking
|
||||
rev: 7.0.0
|
||||
hooks:
|
||||
|
||||
@@ -180,3 +180,6 @@ packages = [
|
||||
"etc/keystone" = [
|
||||
"etc/sso_callback_template.html",
|
||||
]
|
||||
|
||||
[tool.bandit]
|
||||
exclude_dirs = ['keystone/tests/*', 'devstack/*']
|
||||
|
||||
8
tox.ini
8
tox.ini
@@ -35,14 +35,6 @@ commands =
|
||||
passenv = FAST8_NUM_COMMITS
|
||||
allowlist_externals = {toxinidir}/tools/fast8.sh
|
||||
|
||||
[testenv:bandit]
|
||||
# NOTE(browne): This is required for the integration test job of the bandit
|
||||
# project. Please do not remove.
|
||||
deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/requirements.txt
|
||||
commands = bandit -r keystone -x 'keystone/tests/*'
|
||||
|
||||
[testenv:cover]
|
||||
# Also do not run test_coverage_ext tests while gathering coverage as those
|
||||
# tests conflict with coverage.
|
||||
|
||||
Reference in New Issue
Block a user