Bandit does not read .bandit when files are passed.

See https://github.com/PyCQA/bandit/issues/332
This commit is contained in:
Pedro Algarvio 2021-03-01 04:22:10 +00:00 committed by Megan Wilhite
parent 0453b7ac7e
commit fbdd6478d1

View file

@ -1151,7 +1151,7 @@ repos:
- id: bandit
alias: bandit-salt
name: Run bandit against Salt
args: [--silent, -lll]
args: [--silent, -lll, --skip, B701]
exclude: >
(?x)^(
templates/.*|
@ -1164,7 +1164,7 @@ repos:
- id: bandit
alias: bandit-tests
name: Run bandit against the test suite
args: [--silent, -lll]
args: [--silent, -lll, B701]
files: ^tests/.*
exclude: ^tests/minionswarm\.py
# <---- Security ---------------------------------------------------------------------------------------------------