diff options
author | Alberto Contreras <alberto.contreras@canonical.com> | 2022-07-21 06:16:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 22:16:31 -0600 |
commit | 4564ce668b6f12a1c09c5eb3372a94682956d524 (patch) | |
tree | 752a4f7c839ea6b0ab41816d2cca760701b77225 /tox.ini | |
parent | 1bbbad7be070ba25dd22e909499e86223ed94468 (diff) | |
download | cloud-init-git-4564ce668b6f12a1c09c5eb3372a94682956d524.tar.gz |
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.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 = |