mirror of https://github.com/zulip/zulip.git
check-all: Check some Python files whose names don't end in .py
(imported from commit ddcc80f02fd0436e08181d3c08f4de6974d3a59a)
This commit is contained in:
parent
d9195cd189
commit
f619c765e7
|
@ -14,11 +14,23 @@ fi
|
||||||
|
|
||||||
cd "$SCRIPT_DIR"/..;
|
cd "$SCRIPT_DIR"/..;
|
||||||
|
|
||||||
if git ls-files | grep py$ | grep -v ^confirmation/ \
|
# Some Python files don't have names ending in .py
|
||||||
| grep -v humbug/test_settings.py \
|
PYTHON_FILES=$(cat <<EOF
|
||||||
| xargs pyflakes \
|
api/examples/subscribe
|
||||||
| grep $FILTER_IMPORTS; then
|
api/examples/get-public-streams
|
||||||
|
api/examples/send-message
|
||||||
|
api/examples/print-messages
|
||||||
|
api/examples/print-next-message
|
||||||
|
api/examples/get-subscriptions
|
||||||
|
api/check-mirroring
|
||||||
|
tools/update-deployment
|
||||||
|
tools/post-receive
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
PYTHON_FILES="$PYTHON_FILES $(git ls-files | grep '\.py$' | egrep -v '^(confirmation/|humbug/test_settings\.py)')"
|
||||||
|
|
||||||
|
if pyflakes $PYTHON_FILES | grep $FILTER_IMPORTS; then
|
||||||
EXITCODE=1;
|
EXITCODE=1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue