From fbdd6478d1114fd0067c5ac7fe13e25e92cb38c9 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Mon, 1 Mar 2021 04:22:10 +0000 Subject: [PATCH] Bandit does not read `.bandit` when files are passed. See https://github.com/PyCQA/bandit/issues/332 --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1bcc4af5de5..c8987e6160d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 ---------------------------------------------------------------------------------------------------