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
Current behavior is on purpose, because you can break typing of a file foo.py while modifying only another file bar.py, if foo.py imports bar.py (which is not the case for linting or formatting, which are independent between files).
I agree that it can be a bit surprising and should be documented (in the pre-commit config), so I keep the issue open with a "Documentation" label.
By default, pre-commit gives only the staged files to each pre-commit command.
However, in Sicarator, we do the following:
with
make type-check
astype-check: poetry run mypy src
We could do something like this to run mypy only on staged files:
@ywolff What do you think ?
The text was updated successfully, but these errors were encountered: