mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
Notably, this adds our checks on translated message strings to `tools/test-all`, so that they don't cause surprise failures in CI after a branch is pushed. (Alternately they could have gone in `tools/lint` to accomplish the same goal, but `makemessages` which they depend on is quite slow -- on my machine it takes 7s, compared to 10s for all of `tools/lint`.)
27 lines
756 B
Bash
Executable File
27 lines
756 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -x
|
|
|
|
retcode=0
|
|
./tools/run-mypy --py2 --linecoverage-report || retcode=1
|
|
./tools/run-mypy --py3 || retcode=1
|
|
set +x
|
|
if [ "$retcode" == "0" ]; then
|
|
echo "The mypy static type checker for python detected no errors!"
|
|
else
|
|
echo
|
|
echo "The mypy static type checker for Python threw some errors,"
|
|
echo "which indicates a bug in your code or incorrect type annotations."
|
|
echo "Please see http://zulip.readthedocs.io/en/latest/mypy.html for details"
|
|
echo "on mypy, how Zulip is using mypy, and how to debug common issues."
|
|
exit "$retcode"
|
|
fi
|
|
set -x
|
|
|
|
tools/check-py3
|
|
|
|
# NB: Everything here should be in `tools/test-all`. If there's a
|
|
# reason not to run it there, it should be there as a comment
|
|
# explaining why.
|