From d7857b3129d8af5a532d69ed8b44fe6e0e892d31 Mon Sep 17 00:00:00 2001 From: Chris Patterson Date: Wed, 27 Apr 2022 08:59:16 -0400 Subject: [PATCH] mypy: disable missing imports warning for httpretty httpretty does not appear to support mypy stubs. Add configuration to for mypy to ignore this import. With this we can add checking for test_azure.py. Signed-off-by: Chris Patterson --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 324d6f353b7..8fb76530190 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -77,7 +77,6 @@ exclude=[ '^tests/unittests/net/test_dhcp\.py$', '^tests/unittests/net/test_init\.py$', '^tests/unittests/sources/test_aliyun\.py$', - '^tests/unittests/sources/test_azure\.py$', '^tests/unittests/sources/test_ec2\.py$', '^tests/unittests/sources/test_exoscale\.py$', '^tests/unittests/sources/test_gce\.py$', @@ -100,3 +99,7 @@ exclude=[ '^tests/unittests/test_util\.py$', '^tools/mock-meta\.py$', ] + +[[tool.mypy.overrides]] +module = [ "httpretty" ] +ignore_missing_imports = true