Skip to content

Add initial mypy type checking to CI

Igor Ponomarev requested to merge igor.ponomarev/ci-collate:ci-mypy-initial into main

Only check the glcollate/defaults.py file to start with. More files will be reworked to properly use type hints and added in the future.

The config is split between pyproject.toml and tools/mypy.py. The first file dictates which mypy checks will be enabled and the second file controls how it will be run.

Add from __future__ import annotations to indicate that the file is type checked. This import enables the postponed evaluation of type annotations.

Merge request reports

Loading