Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.06 KB

README.rst

File metadata and controls

39 lines (29 loc) · 1.06 KB

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.