Simplify mypy config (#45)

Instead of specifying stricter checks one by one, just run `mypy` in
`strict` mode.

modified:   tox.ini
This commit is contained in:
Jürgen Gmach 2020-07-04 15:39:43 +02:00 committed by GitHub
parent d717f86238
commit 8a406dd9d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
tox.ini
View File

@ -52,8 +52,8 @@ deps =
mypy mypy
commands = commands =
-mypy \ -mypy \
--strict \
--show-error-context \ --show-error-context \
--config-file {toxinidir}/tox.ini \
--html-report {env:MYPYHTML}.py3.{envname} \ --html-report {env:MYPYHTML}.py3.{envname} \
{posargs:{env:SSHAUDIT}} {posargs:{env:SSHAUDIT}}
@ -86,24 +86,6 @@ commands =
print(b'\n'.join(l).decode('utf-8')); \ print(b'\n'.join(l).decode('utf-8')); \
sys.exit(1 if len(l) > 0 else 0)" sys.exit(1 if len(l) > 0 else 0)"
[mypy]
ignore_missing_imports = False
follow_imports = normal
disallow_incomplete_defs = True
disallow_untyped_calls = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
check_untyped_defs = True
disallow_subclassing_any = True
warn_redundant_casts = True
warn_return_any = True
warn_unreachable = True
warn_unused_ignores = True
strict_optional = True
strict_equality = True
strict = True
[pylint] [pylint]
reports = no reports = no
#output-format = colorized #output-format = colorized