Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mwt
on Dec 21, 2021
|
parent
|
context
|
favorite
| on:
Pre-commit: framework for managing/maintaining mul...
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
maleldil
on Dec 21, 2021
[–]
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:
https://pre-commit.com/#pre-commit-configyaml---hooks