pre-commit-circleci
is a
pre-commit component that checks
CircleCI configuration YAML files in Git repositories. It wraps
circleci-cli in a hook that
pre-commit can use.
pre-commit-circleci
requires the following to run:
- Install pre-commit.
- Install circlei-cli.
- Create a
.pre-commit-config.yaml
file in your repository. Set up CircleCI validation as follows:repos: - repo: https://github.com/KoBoldMetals/pre-commit-circleci rev: v0.0.4 hooks: - id: circleci-validate
- Run
pre-commit install
to install the hook.
To contribute to pre-commit-circleci
, clone this repository locally and
commit your code on a separate branch, then submit a pull request.
- GitHub @mplough
- GitHub @danielhoherd - forked from his original pre-commit-circle-ci tool.
- GitHub @detailyang - pre-commit shell-lint was used as a template for the validation hook.
pre-commit-circleci is licensed under the MIT license.