colorize lint errors
This commit is contained in:
parent
acfbbb3898
commit
62f21c3ac6
1 changed files with 5 additions and 2 deletions
|
@ -3,13 +3,16 @@
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
echo "Checking style with flake8..."
|
echo "Checking style with flake8..."
|
||||||
|
tput setaf 1
|
||||||
flake8 --exclude www_static homeassistant
|
flake8 --exclude www_static homeassistant
|
||||||
|
|
||||||
FLAKE8_STATUS=$?
|
FLAKE8_STATUS=$?
|
||||||
|
tput sgr0
|
||||||
|
|
||||||
echo "Checking style with pylint..."
|
echo "Checking style with pylint..."
|
||||||
pylint homeassistant
|
tput setaf 1
|
||||||
|
tput setaf 1; pylint homeassistant
|
||||||
PYLINT_STATUS=$?
|
PYLINT_STATUS=$?
|
||||||
|
tput sgr0
|
||||||
|
|
||||||
if [ $FLAKE8_STATUS -eq 0 ]
|
if [ $FLAKE8_STATUS -eq 0 ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue