Skip to content

danielhoherd/pre-commit-circleci

Repository files navigation

GitHub License

pre-commit-circleci

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.

Requirements

pre-commit-circleci requires the following to run:

Installation

  1. Install pre-commit.
  2. Install circlei-cli.
  3. 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
  4. Run pre-commit install to install the hook.

Contributing

To contribute to pre-commit-circleci, clone this repository locally and commit your code on a separate branch, then submit a pull request.

Authors

License

pre-commit-circleci is licensed under the MIT license.