Finish up MyPy type checking. While there, refactor a bit.

This commit is contained in:
Andris Raugulis
2020-05-22 22:45:24 +00:00
parent d5d83bb009
commit 28ad0ddbe5
2 changed files with 258 additions and 179 deletions
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
_cdir=$(cd -- "$(dirname "$0")" && pwd)
command -v mypy > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "err: mypy (Optional Static Typing for Python) not found."
exit 1
fi
for _pyver in 2.7 3.7; do
echo "--- Python ${_pyver}"
mypy --no-error-summary --strict --warn-unreachable --python-version "${_pyver}" "${_cdir}/../gp-okta.py"
done