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
{{ message }}
Repository navigation
mypy hook alternating between passing and failing on subsequent runs #1966
I have some doubts that is a pre-commit bug but I am encountering some very weird behaviors from the mypy hook, which makes mypy to alternate between passing or reporting errors on the same codebase. The behavior is clear, after a failure you will get a pass, and a failure if running again.
mypy.....................................................................Failed
- hook id: mypy
- exit code: 1
- files were modified by this hook
/Users/ssbarnea/.cache/pre-commit/repo6v6byaj_/py_env-python3.9/lib/python3.9/site-packages/ansiblelint/__init__.py:1: error: Skipping analyzing 'ruamel': found module but no type hints or library stubs
... <similar errors>
Found 138 errors in 138 files (checked 134 source files)
That is happening on MacOS and I suspect some cached files may cause these inconsistency in execution, the even more interesting is the pattern:
Activity
asottile commentedon Jul 3, 2021
this indicates that you were editing some file while it was running -- the rest is probably a mypy cache bug
this isn't the right place to report issues with mypy though, please report this to mypy