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:


with (no further options) to run the type checker.

A typical setup.cfg contains this kind of thing:

show_error_codes = True
warn_unused_ignores = True
files = .

ignore_missing_imports = True

ignore_missing_imports = True