mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 15:21:22 +00:00
19 lines
309 B
Bash
Executable File
19 lines
309 B
Bash
Executable File
#!/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
|