Move Flake configuration into dedicated file

Avoid passing arguments in the script.
This commit is contained in:
2021-11-06 02:55:37 -04:00
parent 6b88fbd1e3
commit 5c620262e9
2 changed files with 13 additions and 7 deletions

8
lint
View File

@ -4,13 +4,7 @@ if ! which flake8 &>/dev/null; then
exit 1
fi
# We ignore the following errors:
# * W503 (line break before binary operator): Black moves these to new lines
# * E501 (line too long): Long lines are a fact of life in comment blocks; Black handles active instances of this
flake8 \
--ignore=W503,E501 \
--exclude=debian,api-daemon/migrations/versions,api-daemon/provisioner/examples \
--max-line-length=88
flake8
ret=$?
if [[ $ret -eq 0 ]]; then
echo "No linting issues found!"