Exclude tests directory from bandit check
... because these are not used in actual deployments. Change-Id: Ib089a389080d8aa8943e3ebb44563859414a69f9 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -21,6 +21,7 @@ repos:
|
||||
rev: 1.8.6
|
||||
hooks:
|
||||
- id: bandit
|
||||
args: ['-c', 'pyproject.toml']
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.20.0
|
||||
hooks:
|
||||
|
@@ -64,3 +64,6 @@ osprofiler = "osprofiler.cmd.shell:main"
|
||||
packages = [
|
||||
"osprofiler"
|
||||
]
|
||||
|
||||
[tool.bandit]
|
||||
exclude_dirs = ["tests"]
|
||||
|
Reference in New Issue
Block a user