pvc/lint

15 lines
230 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
2021-11-06 03:04:14 -04:00
if ! which flake8 &>/dev/null; then
echo "Flake8 is required to lint this project"
exit 1
fi
echo "Linting..."
flake8
2020-11-07 15:15:21 -05:00
ret=$?
if [[ $ret -eq 0 ]]; then
echo "No linting issues found!"
fi
exit $ret