/cmake-format-precommit

pre-commit hooks specification for cmake-format

Primary LanguagePython

Pre-commit Hooks for cmake-format

This repository contains configuration to add cmake-format hooks to a git project using pre-commit.

Usage

To add cmake-format and cmake-lint to your pre-commit configuration, add something like the following to your .pre-commit-config.yaml file:

repos:
  - repo: https://github.com/cheshirekow/cmake-format-precommit
    rev: v0.6.10
    hooks:
    - id: cmake-format
    - id: cmake-lint

Acknowledgements

Thanks to @aharrison24 for prototyping configuration in this issue and this repository and to @asottile for showing us how to create a configuration that sources from pypi.org.