Add linting/formatting and convert to module

This commit is contained in:
Joshua Boniface
2023-04-06 19:26:00 -04:00
parent ca36555e6b
commit a766f2a61f
9 changed files with 1025 additions and 158 deletions

18
lint Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
if ! which flake8 &>/dev/null; then
echo "Flake8 is required to lint this project"
exit 1
fi
pushd $( git rev-parse --show-toplevel ) &>/dev/null
echo ">>> Linting..."
flake8
ret=$?
if [[ $ret -eq 0 ]]; then
echo "No linting issues found!"
fi
popd &>/dev/null
exit $ret