diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-22 14:54:14 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-08-22 14:54:37 -0400 |
| commit | 235fa2f7e67dea1ef20830ae658eb4f817a5caef (patch) | |
| tree | 76c9ef83746533ec7c15adc138ec7512998e2465 | |
| parent | 4fa8f108964749e87a22455bd766f7495093e50d (diff) | |
add `make style` make target
| -rw-r--r-- | .travis.yml | 2 | ||||
| -rw-r--r-- | Makefile | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index d2d2bb16..f7a7a811 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 @@ -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 |
