diff --git a/.mypy.ini b/.mypy.ini new file mode 100644 index 00000000000..8e6439f8074 --- /dev/null +++ b/.mypy.ini @@ -0,0 +1,37 @@ +[mypy] +warn_unused_configs = True + +disallow_any_generics = 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_redundant_casts = True +warn_unused_ignores = True +warn_return_any = True +no_implicit_reexport = True +strict_equality = True + +[mypy-aiodns] +ignore_missing_imports = True + +[mypy-brotli] +ignore_missing_imports = True + +[mypy-gunicorn.*] +ignore_missing_imports = True + +[mypy-uvloop] +ignore_missing_imports = True + +[mypy-cchardet] +ignore_missing_imports = True + +[mypy-tokio] +ignore_missing_imports = True + +[mypy-pytest] +ignore_missing_imports = True diff --git a/Makefile b/Makefile index a7b833353ee..9a1e8311495 100644 --- a/Makefile +++ b/Makefile @@ -74,8 +74,7 @@ fmt format: .PHONY: mypy mypy: - mypy --strict aiohttp - mypy tests + mypy aiohttp tests .develop: .install-deps $(call to-hash,$(PYS) $(CYS) $(CS)) pip install -e .