From 62f21c3ac66fbdd9f86baacf977a50eabeefc81e Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 27 Dec 2015 16:30:32 -0800 Subject: [PATCH] colorize lint errors --- script/lint | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/lint b/script/lint index 75667ef88a4..1cf877e86fa 100755 --- a/script/lint +++ b/script/lint @@ -3,13 +3,16 @@ cd "$(dirname "$0")/.." echo "Checking style with flake8..." +tput setaf 1 flake8 --exclude www_static homeassistant - FLAKE8_STATUS=$? +tput sgr0 echo "Checking style with pylint..." -pylint homeassistant +tput setaf 1 +tput setaf 1; pylint homeassistant PYLINT_STATUS=$? +tput sgr0 if [ $FLAKE8_STATUS -eq 0 ] then