- Fix TODO tag to use the correct username.
- Consolidate from typing imports onto one line per
file where flake8 allows.
- Rework pyproject.toml: strict mypy, check all of
ironicclient/, overrides for tests (relaxed defs +
disabled noisy error codes); incremental on.
- Adjust production code for the stricter checker
(generics, list() returns, casts / ignores as
needed).
- Remove the pre-commit mypy hook. Running mypy there
duplicates dependency pins and cannot use
upper-constraints the way tox does; tox keeps one
dependency graph for the project and ensures mypy
runs in the same gate as the rest of CI (see
Stephen's rationale on running mypy from tox).
- Fix codespell typos in release notes and node
docstring.
Related: https://review.opendev.org/c/openstack/python-ironicclient/+/981228
Change-Id: I723d8c826f4e7e4e96b8ac44cda3a4143c314a11
Signed-off-by: Karan Anand <anandkarancompsci@gmail.com>