diff options
| author | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-06 12:39:02 +0900 |
|---|---|---|
| committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2013-08-06 15:25:57 +0900 |
| commit | 5eaff32cedf72647636e23436dde660d6323943c (patch) | |
| tree | cc39e2f4ab3fc7cb222148e5326a16105f42eda4 | |
| parent | 0a55fe5aa34434e8dc49ddacd050343573c74cb4 (diff) | |
| download | pygerrit-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-- | Makefile | 7 | ||||
| -rw-r--r-- | test_requirements.txt | 1 |
2 files changed, 7 insertions, 1 deletions
@@ -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 |
