From c4e0215db9f31ec3a09711da45ca71ec8a1c0c4c Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Mon, 13 Oct 2025 22:32:46 +0200 Subject: [PATCH] Re-enable typing and improve config. --- .mypy.ini | 8 ++++++++ antsibull-nox.toml | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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]