style: Add C++ pre-commit hooks (#2039)

This commit is contained in:
Ayaz Salikhov
2025-04-29 15:12:38 +01:00
committed by GitHub
parent fadd60e68a
commit 9b83eb4033
6 changed files with 45 additions and 95 deletions

View File

@@ -50,3 +50,24 @@ repos:
rev: v1.31.2
hooks:
- id: typos
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.7
hooks:
- id: clang-format
args: [--style=file]
types: [c++]
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
additional_dependencies: [PyYAML]
- repo: local
hooks:
- id: check-no-h-files
name: No .h files
entry: There should be no .h files in this repository
language: fail
files: \.h$