A Simple opinionated plugin to run pre-commit as part of a BuidKite pipeline.
Pre-commit will run for changes in the PR for PRs and will run on all files when running on the main branch.
pre-commit
is expected to be installed on your Buildkite worker.
The hermit-buildkite-plugin can be used to provision it on the fly.
Add the following to your pipeline.yml
:
steps:
- command: "<your-command>"
plugins:
- elastic/pre-commit#v1.0.1