summaryrefslogtreecommitdiff
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
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
-rw-r--r--Makefile7
-rw-r--r--test_requirements.txt1
2 files changed, 7 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 "\
diff --git a/test_requirements.txt b/test_requirements.txt
index 54214cb..a774acb 100644
--- a/test_requirements.txt
+++ b/test_requirements.txt
@@ -1,2 +1,3 @@
+pep257==0.2.0
pep8==1.4.6
pyflakes==0.4.0