Pre-commit hooks for CircleCI config validation and creation based around the circleci-cli.
pre-commit-circleci requires:
There are two hooks for operating on the CircleCI configuration:
circleci-validatewill callcircleci config validateon the configuration and report errors.circleci-packwill callcircleci config packand add the resulting.circleci/config.yamlto the commit if files in.circleci/template/*.yamlhave changed.
Add the following to your .pre-commit-config.yaml:
- repo: https://github.com/dominodatalab/pre-commit-circleci
rev: v0.0.4
hooks:
- id: circleci-validate
- id: circleci-packContributions are welcome! Please feel free to create a pull request or issue and we'll make sure to take a look.