Skip to content

Kr4is/cmake-format-precommit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

pre-commit hooks specification for cmake-format

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%