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
suggestion: update mypy pre-commit configuration to always pass in all files #538
the issue with this pre-commit configuration is that if you rely on importing your package in tests where your package is defined in src, then mypy is not aware of the package you locally work on unless there are changes in src. The only workaround I've been able to dig up is to always pass in the files into mypy no matter what (see pre-commit/pre-commit#1519):
Activity
henryiii commentedon Jan 22, 2025
https://github.com/scientific-python/repo-review/blob/1a277efd2f08ca178339ff7441e52604b19ba1c2/pyproject.toml#L165 should do it.