Skip to content

Commit

Permalink
bandit and .banditrc
Browse files Browse the repository at this point in the history
  • Loading branch information
HoxhaEndri committed Dec 18, 2023
1 parent ac74a08 commit 0de7eda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .banditrc
Original file line number Diff line number Diff line change
Expand Up @@ -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]':
Expand Down
2 changes: 2 additions & 0 deletions dev-tools/check_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0de7eda

Please sign in to comment.