From d6f3f8fe48f017d899923acd7739b1c7a9bd53eb Mon Sep 17 00:00:00 2001 From: Wayne Werner Date: Wed, 19 Oct 2022 18:35:26 -0500 Subject: [PATCH] Fix bandit deps See https://github.com/PyCQA/bandit/issues/956 for specific info, but without adding the additional_dependencies, the plugins fail to load for bandit, oops! --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1a98cd420c7..9161aa40330 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1149,6 +1149,7 @@ repos: salt/ext/.*| tests/.* )$ + additional_dependencies: ['importlib_metadata<5'] - repo: https://github.com/PyCQA/bandit rev: "1.7.4" hooks: @@ -1158,6 +1159,7 @@ repos: args: [--silent, -lll, --skip, B701] files: ^tests/.* exclude: ^tests/minionswarm\.py + additional_dependencies: ['importlib_metadata<5'] # <---- Security --------------------------------------------------------------------------------------------------- # ----- Pre-Commit ------------------------------------------------------------------------------------------------>