add `make style` make target

pull/288/head
Lex Neva 2018-08-22 14:54:14 -04:00
rodzic 4fa8f10896
commit 235fa2f7e6
2 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -144,7 +144,7 @@ script:
travis_wait 60 ssh -o StrictHostKeyChecking=no -i .ssh/id_rsa -N -R 9999:localhost:9999 debug@lex.gd
fi
if [ -n "$LINT" ]; then
flake8 . --count --max-complexity=10 --max-line-length=150 --statistics --exclude=pyembroidery,__init__.py
make style
elif [ "$BUILD" = "linux" -o "$BUILD" = "osx" ]; then
make dist
elif [ "$BUILD" = "windows" ]; then

Wyświetl plik

@ -53,3 +53,7 @@ locales:
else \
mkdir -p locales; \
fi
.PHONY: style
style:
flake8 . --count --max-complexity=10 --max-line-length=150 --statistics --exclude=pyembroidery,__init__.py