summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Patterson <cpatterson@microsoft.com>2022-04-27 09:57:33 -0400
committerGitHub <noreply@github.com>2022-04-27 08:57:33 -0500
commit2f496d60d16ebf7c85ef6afab2b73d449280932d (patch)
tree0fe22b588455650173ee5ba290650c95f498321a
parentbe19a484e1282e2720ddb357cffce7d70f8bbacf (diff)
downloadcloud-init-git-2f496d60d16ebf7c85ef6afab2b73d449280932d.tar.gz
mypy: disable missing imports warning for httpretty (#1412)
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 <cpatterson@microsoft.com>
-rw-r--r--pyproject.toml5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 324d6f35..8fb76530 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