Files
Doug Goldstein c92aa00375 add a mypy tox environment and CI job
Introduce a mypy static type checking target. The mypy settings in
pyproject.toml are deliberately permissive so the whole tree passes
today: missing stubs for untyped dependencies are ignored, untyped
globals are allowed, and modules with pre-existing errors are
enumerated in temporary ignore_errors override lists. Each relaxation
is commented as temporary scaffolding to be walked back incrementally
as modules are cleaned up; strict_optional stays enabled since
None-safety is the main property we want from mypy.

The tox env pins mypy (it is in global-requirements but not in
upper-constraints, so the version would otherwise float) and installs
types-PyYAML, since mypy does not honor the global
ignore_missing_imports setting for packages with typeshed stubs. The
new ironic-tox-mypy zuul job runs the env in check and gate.

Assisted-By: Claude Fable 5
Change-Id: Ia5ec0d52a5812214096a463346bc89525601c662
Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
2026-07-06 22:31:40 -05:00
..