From 8a406dd9d2df6f311a8b552ece6a187de64335d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Sat, 4 Jul 2020 15:39:43 +0200 Subject: [PATCH] Simplify `mypy` config (#45) Instead of specifying stricter checks one by one, just run `mypy` in `strict` mode. modified: tox.ini --- tox.ini | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/tox.ini b/tox.ini index 05e9179..7727b97 100644 --- a/tox.ini +++ b/tox.ini @@ -52,8 +52,8 @@ deps = mypy commands = -mypy \ + --strict \ --show-error-context \ - --config-file {toxinidir}/tox.ini \ --html-report {env:MYPYHTML}.py3.{envname} \ {posargs:{env:SSHAUDIT}} @@ -86,24 +86,6 @@ commands = print(b'\n'.join(l).decode('utf-8')); \ 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] reports = no #output-format = colorized