2020-11-06 21:13:13 -05:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
if ! which flake8 &>/dev/null; then
|
|
|
|
echo "Flake8 is required to lint this project"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
flake8 \
|
2020-11-07 14:48:40 -05:00
|
|
|
--ignore=E501 \
|
2020-11-07 13:07:07 -05:00
|
|
|
--exclude=api-daemon/migrations/versions,api-daemon/provisioner/examples
|
2020-11-07 15:15:21 -05:00
|
|
|
ret=$?
|
|
|
|
if [[ $ret -eq 0 ]]; then
|
|
|
|
echo "No linting issues found!"
|
|
|
|
fi
|
|
|
|
exit $ret
|