mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 16:21:20 +00:00
19 lines
309 B
Bash
19 lines
309 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -eu
|
||
|
set -o pipefail
|
||
|
set -o errtrace
|
||
|
shopt -s expand_aliases
|
||
|
|
||
|
RED='\033[0;31m'
|
||
|
GREEN='\033[0;32m'
|
||
|
NC='\033[0m'
|
||
|
|
||
|
|
||
|
echo -e "Running pylint...\n"
|
||
|
if pylint lib; then
|
||
|
echo -e "\n${GREEN}Pylint found no errors!${NC}\n"
|
||
|
else
|
||
|
echo -e "\n${RED}Pylint failed with errors${NC}\n"
|
||
|
exit 1
|
||
|
fi
|