Upgrade to Mypy 0.501 and fix issues. Add requirements.txt.

This commit is contained in:
Andris Raugulis
2017-03-23 23:17:35 +02:00
parent 94a74e9cfd
commit 65ef250aae
6 changed files with 40 additions and 12 deletions

View File

@ -7,4 +7,9 @@ if [ $? -ne 0 ]; then
fi
_htmldir="${_cdir}/../html/mypy-py2"
mkdir -p "${_htmldir}"
env MYPYPATH="${_cdir}/stubs/" mypy --python-version 2.7 --strict-optional --config-file "${_cdir}/mypy.ini" --html-report "${_htmldir}" "${_cdir}/../ssh-audit.py"
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"

View File

@ -7,4 +7,8 @@ if [ $? -ne 0 ]; then
fi
_htmldir="${_cdir}/../html/mypy-py3"
mkdir -p "${_htmldir}"
env MYPYPATH="${_cdir}/stubs/" mypy --python-version 3.5 --strict-optional --config-file "${_cdir}/mypy.ini" --html-report "${_htmldir}" "${_cdir}/../ssh-audit.py"
env MYPYPATH="${_cdir}/stubs/" mypy \
--python-version 3.5 \
--show-error-context \
--config-file "${_cdir}/mypy.ini" \
--html-report "${_htmldir}" "${_cdir}/../ssh-audit.py"

View File

@ -4,6 +4,10 @@ follow_imports = error
disallow_untyped_calls = True
disallow_untyped_defs = True
check_untyped_defs = True
disallow-subclassing-any = True
warn-incomplete-stub = True
warn-redundant-casts = True
disallow_subclassing_any = True
warn_incomplete_stub = True
warn_redundant_casts = True
warn_return_any = True
warn_unused_ignores = True
strict_optional = True
#strict_boolean = False

View File

@ -0,0 +1,5 @@
pytest==3.0.7
pytest-cov==2.4.0
lxml==3.7.3
colorama==0.3.7
prospector==0.12.4

View File

@ -0,0 +1,6 @@
pytest==3.0.7
pytest-cov==2.4.0
mypy==0.501
lxml==3.7.3
colorama==0.3.7
prospector==0.12.4