I am looking for a configuration in the .pre-commit-config.yaml to exclude pre-commit from being run on certain branches, or to run it only on some branches. I don't know if this feature not implemented, or if I am missing it in the docs.
Thanks!
I am looking for a configuration in the .pre-commit-config.yaml to exclude pre-commit from being run on certain branches, or to run it only on some branches. I don't know if this feature not implemented, or if I am missing it in the docs.
Thanks!
Given your use-case, you can bypass hooks using the --no-verify flag instead eg
git commit --no-verify -m "WIP Commit message"
or
git commit -n -m "WIP Commit message"