fix pep8 linter command + update a few linted files

This commit is contained in:
Dane Springmeyer 2015-02-02 10:37:59 -08:00
parent 7d78115886
commit 956d936162
6 changed files with 67 additions and 67 deletions

View file

@ -84,8 +84,9 @@ demo:
pep8: pep8:
# https://gist.github.com/1903033 # https://gist.github.com/1903033
# gsed on osx # gsed on osx
@pep8 -r --select=W293 -q --filename=*.py `pwd`/tests/ | xargs gsed -i 's/^[ \r\t]*$//' @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 '}' @pep8 -r --select=W391 -q --filename=*.py `pwd`/tests/ | xargs gsed -i -e :a -e '/^\n*$$/{$$d;N;ba' -e '}'
@pep8 -r --select=W391 -q --filename=*.py `pwd`/tests/ | xargs ged -i '/./,/^$$/!d'
grind: grind:
@for FILE in tests/cpp_tests/*-bin; do \ @for FILE in tests/cpp_tests/*-bin; do \

View file

@ -105,4 +105,3 @@ for format_tree in format_trees:
diff = compare(actual,expected) diff = compare(actual,expected)
if diff > 0: if diff > 0:
print 'comparision failed between:\n %s (actual)\n %s (expected)' % (actual,expected) print 'comparision failed between:\n %s (actual)\n %s (expected)' % (actual,expected)