diff --git a/mypy.ini b/mypy.ini index 9d810b738..797ed0bca 100644 --- a/mypy.ini +++ b/mypy.ini @@ -3,6 +3,22 @@ # with conditional imports (like secrets.py). python_version = 3.6 +# --strict +warn_unused_configs = True +warn_redundant_casts = True +warn_unused_ignores = True +disallow_subclassing_any = True +# disallow_untyped_calls = True +# disallow_untyped_defs = True +# disallow_incomplete_defs = True +# check_untyped_defs = True +# disallow_untyped_decorators = True +# no_implicit_optional = True +# warn_return_any = True + +# disallow_any_generics = True + + [mypy-faulthandler] # https://github.com/python/typeshed/pull/2627 ignore_missing_imports = True @@ -30,3 +46,7 @@ ignore_missing_imports = True [mypy-bdb] # stdlib, missing in typeshed ignore_missing_imports = True + +[mypy-qutebrowser.browser.webkit.rfc6266] +# subclasses dynamic PyPEG2 classes +disallow_subclassing_any = False