-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run the pylint automatically in the project, and fail on non-compliance. It's integrated with the checklist, but not the tests. It remains to be checked in the CI Fixes #22
- Loading branch information
Showing
3 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
YELLOW="\e[93m" | ||
RED="\e[91m" | ||
RESET="\e[0m" | ||
TICK="\e[32m✔" | ||
CROSS="\e[31m✘" | ||
|
||
echo -e "$YELLOW> Checking code style...$RESET" | ||
pylint --rcfile=setup.cfg \ | ||
compressor/ \ | ||
tests/ | ||
|
||
if [[ "$?" == "0" ]]; then | ||
echo -e "$TICK Code style correct$RESET" | ||
else | ||
echo -e "$CROSS Check for errors in the code style$RESET" | ||
fi |