A plugin to run pre-commit as part of a Buildkite pipeline.
By default pre-commit will run for files changed in a Pull Request for Pull Requests otherwise on all files.
This can be overridden with the all parameter, causing all files to be checked on Pull Request runs.
pre-commit is expected to be installed on your Buildkite worker.
Add the following to your pipeline.yml:
steps:
- label: pre-commit
plugins:
- opzkit/pre-commit#v1.1.35Or to run on all files even on PRs:
steps:
- label: pre-commit
plugins:
- opzkit/pre-commit#v1.1.35:
all: true