From acd1c9a1353b422b775a3a43836b80065d23b81a Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 16 Aug 2014 22:48:47 +0200 Subject: [PATCH] move pep8 check to Makefile --- Makefile | 5 +++++ pep8.sh | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) delete mode 100755 pep8.sh diff --git a/Makefile b/Makefile index d033bf5..7db5197 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,11 @@ all: _test_swig.so _test_swig_opencv.so test: python2.7 test_swig_test.py +.PHONY: pep8 +pep8: + find . -name "*.py" -not -name test_swig.py -not -name test_swig_opencv.py \ + | xargs pep8 + _test_swig.so: test_swig.o ld -shared test_swig.o test_swig_wrap.o -o _test_swig.so diff --git a/pep8.sh b/pep8.sh deleted file mode 100755 index f0d8a16..0000000 --- a/pep8.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -find . -name "*.py" -not -name test_swig.py -not -name test_swig_opencv.py \ - | xargs pep8