Added CMakeFormat, CMakeLint, clang-format, clang-tidy precommit hook
This commit is contained in:
parent
044e38732d
commit
26d8821665
1 changed files with 17 additions and 1 deletions
|
@ -4,13 +4,29 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v2.3.0
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: check-yaml
|
||||
- id: end-of-file-fixer
|
||||
- id: trailing-whitespace
|
||||
- id: check-merge-conflict
|
||||
- id: check-ast
|
||||
- repo: https://github.com/fsfe/reuse-tool
|
||||
rev: v2.1.0
|
||||
hooks:
|
||||
- id: reuse
|
||||
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
||||
rev: v0.6.13
|
||||
hooks:
|
||||
- id: cmake-format
|
||||
types: [cmake]
|
||||
additional_dependencies: [pyyaml>=5.1]
|
||||
- id: cmake-lint
|
||||
types: [cmake]
|
||||
additional_dependencies: [pyyaml>=5.1]
|
||||
- repo: https://github.com/pocc/pre-commit-hooks
|
||||
rev: v1.3.5
|
||||
hooks:
|
||||
- id: clang-format
|
||||
- id: clang-tidy
|
||||
...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue