From e4294c0fbad2ffaf5ba3b9416676059ecf1a89d2 Mon Sep 17 00:00:00 2001 From: Jacob Bandes-Storch Date: Fri, 5 Nov 2021 17:43:22 -0400 Subject: [PATCH] Keep bandit args in .pre-commit-config.yaml as well as .vscode/settings.json Bandit will soon support configuration via pyproject.toml but a version supporting this has not yet been released. See https://github.com/PyCQA/bandit/issues/550 --- .pre-commit-config.yaml | 1 + .vscode/settings.json | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5366a67de..dd615bdc3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,6 +34,7 @@ repos: rev: 1.7.0 hooks: - id: bandit + args: ["--skip", "B101,B110,B311"] - repo: https://github.com/codespell-project/codespell rev: v2.1.0 diff --git a/.vscode/settings.json b/.vscode/settings.json index c74ae4f4f..46660758d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,4 +7,8 @@ "[python]": { "editor.formatOnSave": true }, + "python.linting.banditArgs": [ + "--skip", + "B101,B110,B311" + ], }