check-all: Only check python files in git.

(imported from commit 1c633e048cad0cc4f629977363df6a8300dac65c)
This commit is contained in:
Tim Abbott 2012-10-05 13:43:12 -04:00
parent 10adfee7b0
commit 12cd44bd0f
1 changed files with 3 additions and 5 deletions

View File

@ -9,11 +9,9 @@ fi
cd "$SCRIPT_DIR"/..;
if find . \
-path ./confirmation -prune \
-o -path ./humbug/test-settings.py -prune \
-o -name '*.py' -print0 \
| xargs -0 pyflakes \
if git ls-files | grep py$ | grep -v ^confirmation/ \
| grep -v humbug/test-settings.py \
| xargs pyflakes \
| grep -v 'imported but unused'; then
EXITCODE=1;