format: add cmake-format to pre-commit

This commit is contained in:
Henry Schreiner
2020-07-29 16:42:07 -04:00
committed by Henry Schreiner
parent 1651c32492
commit e2a96890e1
3 changed files with 76 additions and 1 deletions

View File

@@ -26,6 +26,12 @@ repos:
additional_dependencies: [flake8-bugbear, pep8-naming]
exclude: ^(docs/.*|tools/.*)$
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
hooks:
- id: cmake-format
additional_dependencies: [pyyaml]
- repo: local
hooks:
- id: check-style