Skip to content

Commit

Permalink
update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Jul 8, 2024
1 parent d17f674 commit b173f70
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions dev-tools/check_project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ banditer() {
exit 1
fi

mapfile -t PY_SCRIPTS < <(find . -type d -name migrations -prune -false -o -iname "*.py" -not -path "./.venv/*" -not -path "./emba/*")
mapfile -t PY_SCRIPTS < <(find . -type d -name migrations -prune -false -o -iname "*.py" -not -path "./.venv/*" -not -path "./emba/*" -not -path "./emba_logs/*")

for PY_SCRIPT in "${PY_SCRIPTS[@]}"; do
echo -e "\\n""${GREEN}""Run bandit on ${PY_SCRIPT}:""${NC}""\\n"
Expand Down Expand Up @@ -294,11 +294,11 @@ list_linter_exceptions(){
SEARCH_TYPE_="sh"
;;
bandit)
SEARCH_PAR_="nosec"
SEARCH_PAR_=" nosec"
SEARCH_TYPE_="py"
;;
pylint)
SEARCH_PAR_="pylint"
SEARCH_PAR_="pylint: disable"
SEARCH_TYPE_="py"
;;
djlint)
Expand Down Expand Up @@ -350,13 +350,14 @@ shellchecker
list_linter_exceptions "shellcheck" "$PWD"
dockerchecker
jscheck
list_linter_exceptions "jshint" "$PWD"
list_linter_exceptions "jshint" "$PWD/embark"
templatechecker
list_linter_exceptions "djlint" "$PWD"
list_linter_exceptions "djlint" "$PWD/embark"
pycodestyle_check
banditer
list_linter_exceptions "bandit" "$PWD" "${PWD}/.venv"
list_linter_exceptions "bandit" "$PWD/embark"
pylinter
list_linter_exceptions "pylint" "$PWD/embark"
check_django
yamlchecker
copy_right_check 2024 "${PWD}" "${PWD}/emba_logs"
Expand Down

0 comments on commit b173f70

Please sign in to comment.