Skip to content
Snippets Groups Projects
Commit 67c749da authored by soblin's avatar soblin
Browse files

added clang-format checking in pre-commit

parent 673fbda3
No related branches found
No related tags found
No related merge requests found
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
id: end-of-file-fixer
id: check-yaml
id: check-added-large-files
# CMake formatting
- repo: https://github.com/cheshirekow/cmake-format-precommit
......@@ -17,3 +15,10 @@ repos:
additional_dependencies: [pyyaml]
types: [file]
files: (\.cmake|CMakeLists.txt)(.in)?$
# Clang format the codebase automatically
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v13.0.1"
hooks:
- id: clang-format
types_or: [c++, c]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment