From 41c1282044f9b590993862e68d53d4f12ef20215 Mon Sep 17 00:00:00 2001 From: Arun Siluvery Date: Wed, 6 Sep 2023 12:59:19 +0100 Subject: [PATCH] Specify bandit arguments using yaml file Values provided in .bandit file are not being picked up --- .bandit | 2 -- bandit.yaml | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .bandit create mode 100644 bandit.yaml diff --git a/.bandit b/.bandit deleted file mode 100644 index d3cdff41..00000000 --- a/.bandit +++ /dev/null @@ -1,2 +0,0 @@ -[bandit] -exclude: /mail/tests,/.venv,/static/management diff --git a/bandit.yaml b/bandit.yaml new file mode 100644 index 00000000..6636fa41 --- /dev/null +++ b/bandit.yaml @@ -0,0 +1,2 @@ +exclude_dirs: ['mail/tests', '.venv', '.git', 'tests'] +skips: ['B101']