Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



This works, thanks. I had to set up one mypy hook for each project, however. Is there a better way?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: