diff --git a/.mypy.ini b/.mypy.ini index ef871684..9bf522d4 100644 --- a/.mypy.ini +++ b/.mypy.ini @@ -18,6 +18,14 @@ # ansible-core has partial typing information follow_untyped_imports = True +[mypy-docker.*] +# Docker SDK for Python has partial typing information +follow_untyped_imports = True + [mypy-ansible_collections.community.internal_test_tools.*] # community.internal_test_tools has no typing information ignore_missing_imports = True + +[mypy-jsondiff.*] +# jsondiff has no typing information +ignore_missing_imports = True diff --git a/antsibull-nox.toml b/antsibull-nox.toml index 33f52dbb..d37d52b7 100644 --- a/antsibull-nox.toml +++ b/antsibull-nox.toml @@ -27,7 +27,7 @@ run_yamllint = true yamllint_config = ".yamllint" yamllint_config_plugins = ".yamllint-docs" yamllint_config_plugins_examples = ".yamllint-examples" -run_mypy = false +run_mypy = true mypy_ansible_core_package = "ansible-core>=2.19.0" mypy_config = ".mypy.ini" mypy_extra_deps = [ @@ -35,7 +35,11 @@ mypy_extra_deps = [ "paramiko", "urllib3", "requests", + "types-mock", + "types-paramiko", + "types-pywin32", "types-PyYAML", + "types-requests", ] [sessions.docs_check]