You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mypy sometimes succeeds when run in pre-commit, but fails with legitimate type issues when run in isolation or in Github (example job).
This seems to be a somewhat common issue (e.g. see pypa/pip#9502), though I haven't had success with any of the proposed workarounds. There are some more ideas here, though they aren't entirely satisfactory. Part of the issue seems to be how pre-commit works by running in a separate virtualenv.
In the meantime, running poetry run mypy --install-types . in the root of the project appears to surface the correct errors.
The text was updated successfully, but these errors were encountered:
Mypy sometimes succeeds when run in pre-commit, but fails with legitimate type issues when run in isolation or in Github (example job).
This seems to be a somewhat common issue (e.g. see pypa/pip#9502), though I haven't had success with any of the proposed workarounds. There are some more ideas here, though they aren't entirely satisfactory. Part of the issue seems to be how pre-commit works by running in a separate virtualenv.
In the meantime, running
poetry run mypy --install-types .
in the root of the project appears to surface the correct errors.The text was updated successfully, but these errors were encountered: