Remove the --ignore-missing-imports flag from our mypypre-commit hook.
Motivation and context
The mypypre-commit hook that we use includes the --ignore-missing-imports flag by default, but we want to override that behavior. This will give us better mypy analysis and force us to document where type stubs are unavailable/missing.
💡 Summary
Remove the
--ignore-missing-imports
flag from ourmypy
pre-commit
hook.Motivation and context
The
mypy
pre-commit
hook that we use includes the--ignore-missing-imports
flag by default, but we want to override that behavior. This will give us bettermypy
analysis and force us to document where type stubs are unavailable/missing.For more context, see this discussion.
Implementation notes
Don't forget to put a helpful comment in the
.pre-commit-config.yaml
section explaining why we are adding this (or something like it):Acceptance criteria
mypy
pre-commit
hook no longer includes the--ignore-missing-imports
flag