diff --git a/.banditrc b/.banditrc index 1e48a734..f60de0d2 100644 --- a/.banditrc +++ b/.banditrc @@ -80,7 +80,7 @@ # (optional) list included test IDs here, eg '[B101, B406]': -tests: [B101, B102, B103, B104, B105, B106, B107, B108, B110, B112, B201, B301, B302, B303, B304, B305, B306, B307, B308, B309, B310, B311, B312, B313, B314, B315, B316, B317, B318, B319, B320, B321, B322, B323, B324, B325, B401, B402, B403, B405, B406, B407, B408, B409, B410, B411, B412, B413, B501, B502, B503, B504, B505, B506, B507, B601, B602, B603, B604, B605, B606, B607, B608, B609, B610, B611, B701, B702, B703] +tests: [B101, B102, B103, B104, B105, B106, B107, B108, B110, B112, B201, B301, B302, B303, B304, B305, B306, B307, B308, B310, B311, B312, B313, B314, B315, B316, B317, B318, B319, B320, B321, B323, B324, B401, B402, B403, B405, B406, B407, B408, B409, B410, B411, B412, B413, B501, B502, B503, B504, B505, B506, B507, B601, B602, B603, B604, B605, B606, B607, B608, B609, B610, B611, B701, B702, B703] # (optional) list skipped test IDs here, eg '[B101, B406]': diff --git a/dev-tools/check_project.sh b/dev-tools/check_project.sh index a474b8ee..afb51113 100755 --- a/dev-tools/check_project.sh +++ b/dev-tools/check_project.sh @@ -183,6 +183,8 @@ banditer() { echo -e "\\n""${ORANGE}""bandit not found!""${NC}""\\n""${ORANGE}""Install bandit via 'apt-get install bandit'!""${NC}\\n" exit 1 fi + + mapfile -t PY_SCRIPTS < <(find . -type d -name migrations -prune -false -o -iname "*.py" -not -path "./.venv/*") for PY_SCRIPT in "${PY_SCRIPTS[@]}"; do echo -e "\\n""${GREEN}""Run bandit on ${PY_SCRIPT}:""${NC}""\\n"