2016-10-19 19:51:57 +02:00
|
|
|
#!/bin/sh
|
|
|
|
_cdir=$(cd -- "$(dirname "$0")" && pwd)
|
|
|
|
type mypy > /dev/null 2>&1
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "err: mypy (Optional Static Typing for Python) not found."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
_htmldir="${_cdir}/../html/mypy-py2"
|
|
|
|
mkdir -p "${_htmldir}"
|
2017-03-23 22:17:35 +01:00
|
|
|
env MYPYPATH="${_cdir}/stubs/" mypy \
|
|
|
|
--python-version 2.7 \
|
|
|
|
--no-warn-incomplete-stub \
|
|
|
|
--show-error-context \
|
|
|
|
--config-file "${_cdir}/mypy.ini" \
|
|
|
|
--html-report "${_htmldir}" "${_cdir}/../ssh-audit.py"
|