3 ms·
You can point a hook towards a specific path, i.e. adding `files: ^C` to a hook will cause it to only run on the path of project/path C. There's also `exclude:
by mwt 5y ago
You can point a hook towards a specific path, i.e. adding `files: ^C` to a hook will cause it to only run on the path of project/path C. There's also `exclude: ` to do to the opposite and other ways to customize each hook with granularity.
https://pre-commit.com/#pre-commit-configyaml---hooks https://pre-commit.com/#pre-commit-configyaml---hooks
- maleldil 5y agoThis works, thanks. I had to set up one mypy hook for each project, however. Is there a better way?