This commit adds the tooling necessary to support gradual type annotation of the codebase: - Add mypy to test-requirements.txt - Add mypy configuration to pyproject.toml with a list of type-checked modules (initially empty, to be populated as modules are migrated) - Add tox mypy environment for running type checks - Add mypy pre-commit hook This follows the same pattern established in `ironic-prometheus-exporter`. Change-Id: Ie9e4b5ebccff4ce29b4e014c62f09594d968d721 Signed-off-by: Karan Anand <anandkarancompsci@gmail.com>
7 lines
150 B
YAML
7 lines
150 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.14.1
|
|
hooks:
|
|
- id: mypy
|
|
args: [--config-file=pyproject.toml]
|