summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2013-08-06 12:39:02 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2013-08-06 15:25:57 +0900
commit5eaff32cedf72647636e23436dde660d6323943c (patch)
treecc39e2f4ab3fc7cb222148e5326a16105f42eda4 /Makefile
parent0a55fe5aa34434e8dc49ddacd050343573c74cb4 (diff)
downloadpygerrit-5eaff32cedf72647636e23436dde660d6323943c.tar.gz
Add PEP-257 conformance check in the Makefile
Note: the latest version of PEP-257 is 0.2.2 but the latest available on PyPI is 0.2.0 which does not exit with error if the check fails. The dependency should be updated after the latest version has been published. Change-Id: Iae3bfeab685d9f92af528156cbc8c957a98f5adb
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7b8714b..e737d69 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,12 @@
all: test
-test: clean unittests pyflakes pep8
+test: clean unittests pyflakes pep8 pep257
+
+pep257: envsetup
+ bash -c "\
+ source ./pygerritenv/bin/activate && \
+ git ls-files | grep \"\.py$$\" | xargs pep257"
pep8: envsetup
bash -c "\