From 4564ce668b6f12a1c09c5eb3372a94682956d524 Mon Sep 17 00:00:00 2001 From: Alberto Contreras Date: Thu, 21 Jul 2022 06:16:31 +0200 Subject: meta-schema: add infra to skip inapplicable modules Add new `activate_by_schema_keys` property to `MetaSchema` defining the schema keys that must be present, to avoid skipping the module. Add this new key to our schema docs. Add documentation to `topics/module_creation`. Import TypedDict from typing_extensions TypedDict and gate it within TYPE_CHECKING to avoid runtime import concerns. --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 05a3e929..1fcd26bc 100644 --- a/tox.ini +++ b/tox.ini @@ -32,6 +32,7 @@ types-oauthlib==3.1.6 types-PyYAML==6.0.4 types-requests==2.27.8 types-setuptools==57.4.9 +typing-extensions==4.1.1 [testenv:flake8] deps = @@ -66,6 +67,7 @@ deps = types-pyyaml=={[format_deps]types-PyYAML} types-requests=={[format_deps]types-requests} types-setuptools=={[format_deps]types-setuptools} + typing-extensions=={[format_deps]typing-extensions} commands = {envpython} -m mypy cloudinit/ tests/ tools/ [testenv:check_format] @@ -83,6 +85,7 @@ deps = types-pyyaml=={[format_deps]types-PyYAML} types-requests=={[format_deps]types-requests} types-setuptools=={[format_deps]types-setuptools} + typing-extensions=={[format_deps]typing-extensions} -r{toxinidir}/test-requirements.txt -r{toxinidir}/integration-requirements.txt commands = -- cgit v1.2.1