Add 'make style'. target
authorJelmer Vernooij <jelmer@jelmer.uk>
Sun, 15 Apr 2018 12:25:08 +0000 (13:25 +0100)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sun, 15 Apr 2018 12:25:08 +0000 (13:25 +0100)
Makefile

index 0852cfd3b91c4a3a08c4541d96f97c1118a94067..fd0445445cd079a2c635c7d6f548ab3992799638 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,5 @@
 PYTHON = python
+FLAKE8 ?= flake8
 SETUP = $(PYTHON) setup.py
 ifeq ($(shell $(PYTHON) -c "import sys; print(sys.version_info >= (2, 7))"),True)
 TESTRUNNER ?= unittest
@@ -27,3 +28,6 @@ check-all: check check-pypy
 
 clean::
        $(SETUP) clean --all
+
+style:
+       $(FLAKE8) --exclude=build,.git,.tox