Add `pre-commit` template.
Add /templates/hooks/template.yml
that inherits from .job
and does the equivalent of:
hooks:
extends: .job
stage: .pre
script:
- bazelisk run -- hooks
This assumes that the user has setup @pre-commit
in the default way.
We should add the hooks
job to ruleset
template by default as we want all our projects to use our default hooks.