move pep8 check to Makefile

This commit is contained in:
neingeist 2014-08-16 22:48:47 +02:00
parent 9f9a7ceff7
commit acd1c9a135
2 changed files with 5 additions and 3 deletions

View file

@ -8,6 +8,11 @@ all: _test_swig.so _test_swig_opencv.so
test: test:
python2.7 test_swig_test.py 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 _test_swig.so: test_swig.o
ld -shared test_swig.o test_swig_wrap.o -o _test_swig.so ld -shared test_swig.o test_swig_wrap.o -o _test_swig.so

View file

@ -1,3 +0,0 @@
#!/bin/sh
find . -name "*.py" -not -name test_swig.py -not -name test_swig_opencv.py \
| xargs pep8