From 235fa2f7e67dea1ef20830ae658eb4f817a5caef Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 22 Aug 2018 14:54:14 -0400 Subject: [PATCH] add `make style` make target --- .travis.yml | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index d2d2bb169..f7a7a8114 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index 030ddd670..24f33763a 100644 --- a/Makefile +++ b/Makefile @@ -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