mirror of
https://github.com/jtesta/ssh-audit.git
synced 2025-06-22 02:33:40 +02:00
Upgrade to Mypy 0.501 and fix issues. Add requirements.txt.
This commit is contained in:
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
5
test/requirements-py2.txt
Normal file
5
test/requirements-py2.txt
Normal 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
|
6
test/requirements-py3.txt
Normal file
6
test/requirements-py3.txt
Normal 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
|
Reference in New Issue
Block a user