Open cclauss opened 3 years ago
Updated our make lint
target with explicit cache in current working dir (install + lint in one command):
python -m mypy --install-types --non-interactive --cache-dir=.mypy_cache/
that got our CI green, would be a good default imo (e.g. behind the --non-interactive
flag)
Is this fixed? I'm encountering the same error.
Documentation
Docs for
--install-types
and--non-interactive
do not mention.mypy-cache
yet these options often fail (esp. in GitHub Actions, tox, pre-commit) witherror: --install-types failed (no mypy cache directory)
even aftermkdir .mypy_cache
has been run. The user may then experience a tremendous feeling of helplessness.Probably caused by #10768 but the docs should help the user understand the misleading error message.