summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2018-04-15 13:25:08 +0100
committerJelmer Vernooij <jelmer@jelmer.uk>2018-04-15 13:25:08 +0100
commit01403290ca0e7426423a4283b5cc80ee68db0e1f (patch)
treef4425d0cc4c2ab7291070218065ba6d1396fe645
parent18a98a368816376b972ee23b7fd1fdf34d1f7658 (diff)
downloadpython-fastimport-git-01403290ca0e7426423a4283b5cc80ee68db0e1f.tar.gz
Add 'make style'. target
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0852cfd..fd04454 100644
--- 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