Permalink
Browse files

add python test formatting to makefile

  • Loading branch information...
1 parent 954eb5c commit 039e850572fd67411badc2fa09a42c445674447a Dane Springmeyer committed Feb 25, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 Makefile
View
@@ -20,4 +20,10 @@ uninstall:
test:
@python tests/run_tests.py -q
+pep8:
+ # https://gist.github.com/1903033
+ # gsed on osx
+ @pep8 -r --select=W293 -q --filename=*.py `pwd`/tests/ | xargs gsed -i 's/^[ \r\t]*$//'
+ @pep8 -r --select=W391 -q --filename=*.py `pwd`/tests/ | xargs gsed -i -e :a -e '/^\n*$/{$d;N;ba' -e '}'
+
.PHONY: clean reset uninstall test install

0 comments on commit 039e850

Please sign in to comment.