Skip to content

Commit

Permalink
added clang-format checking in pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
soblin committed Mar 13, 2022
1 parent 673fbda commit 67c749d
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# 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
- 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

# CMake formatting
- repo: https://github.com/cheshirekow/cmake-format-precommit
Expand All @@ -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 comments on commit 67c749d

Please sign in to comment.