On , I learnt ...
A better way of configuring mypy
I didn’t realise you can put all your config into setup.cfg
so that you can
just run:
mypy
with (no further options) to run the type checker.
A typical setup.cfg
contains this kind of thing:
[mypy]
show_error_codes = True
warn_unused_ignores = True
files = .
[mypy-pytest]
ignore_missing_imports = True
[mypy-structlog]
ignore_missing_imports = True