Getting started¶
Create the baseline (it will be stored in mypy-baseline.txt
by default):
mypy | mypy-baseline sync
After that, you can pipe mypy output into mypy-baseline filter
, and it will filter out all issues that are already in the baseline:
mypy | mypy-baseline filter
If you introduce new errors, resolve them. If you resolve existing errors, run mypy-baseline sync
again to re-generate baseline. In both cases, mypy-baseline will tell you what’s wrong and what to do. Enjoy the ride!
Read more in the documentation: mypy-baseline.orsinium.dev