add bandit integration and fix its warnings

This commit is contained in:
2021-08-11 02:45:13 +03:00
parent 375d7c55e5
commit 48e79ce39c
6 changed files with 17 additions and 3 deletions

View File

@ -26,6 +26,8 @@ archlinux: archive
check: clean mypy
find "src/$(PROJECT)" "tests/$(PROJECT)" -name "*.py" -execdir autopep8 --exit-code --max-line-length 120 -aa -i {} +
cd src && pylint --rcfile=../.pylintrc "$(PROJECT)"
cd src && bandit -c ../.bandit.yml -r "$(PROJECT)"
cd tests && bandit -c ../.bandit-test.yml -r "$(PROJECT)"
clean:
find . -type f -name "$(PROJECT)-*-src.tar.xz" -delete