Skip to content
pre-commit hooks specification for cmake-format
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.pre-commit-hooks.yaml
README.rst
setup.py

README.rst

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.3
    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.

You can’t perform that action at this time.