zulip/tools/check-all

18 lines
331 B
Plaintext
Raw Normal View History

#!/bin/bash
SCRIPT_DIR="$(readlink -f "$(dirname "$0")")"
EXITCODE=0
if ! "$SCRIPT_DIR"/jslint/check-all; then
EXITCODE=1;
fi
if find "$(readlink -f "$SCRIPT_DIR"/..)" -name confirmation -prune -o -name '*.py' -print0 \
| xargs -0 pyflakes \
| grep -v 'imported but unused'; then
EXITCODE=1;
fi
exit $EXITCODE