Update pre-commit to use bandit and safety [skip ci]
@@ -11,8 +11,8 @@ if [[ -z ${SKIP_HOOK} ]]; then
find hikari tests -type f -name '*.py' -exec sed -i "s/[ ]*$//g" {} \; -exec git add {} \;
# Run black on specific files if needed.
nox -s check-formatting || nox -s reformat-code | grep -oP '^reformatted \K.*' | xargs -d'\n' -I '{}' git add -n '{}'
- # Run pytest, pylint, pydocstyle in-order.
- nox --sessions pytest pylint pydocstyle
+ # Run pytest, pylint, pydocstyle, bandit, safety
+ nox --sessions pylint pydocstyle pytest bandit safety
else
echo -e '\e[1;31mSKIPPING COMMIT HOOKS. THIS IS HERESY!\e[0m'
fi
