Refactored (10)

- Added `ci/lint.sh`, which uses `flake8` to lint the relevant files
- Made changes to appease the linter.
- Bugfix in `cheat/configuration` (missing dependency)
This commit is contained in:
Chris Lane
2019-02-01 14:42:10 -05:00
parent df21731c02
commit ba47dc2cbc
8 changed files with 30 additions and 18 deletions

9
ci/lint.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Resolve the app root
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
APPROOT=`realpath "$SCRIPTPATH/.."`
flake8 $APPROOT/bin/cheat
flake8 $APPROOT/cheat/*.py