Skip to content

Commit

Permalink
initalized pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
wusatosi committed Oct 2, 2024
1 parent 4aa374c commit 42a8812
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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: local
hooks:
- id: clang-format-fix
name: clang-format-fix
entry: clang-format-18
files: ^(src/|include/)
types_or: [c++, c]
language: system
args: ['-i']
stages: [manual]

- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
additional_dependencies: ['clang-format==18.1.8']

- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-tidy
stages: [manual]
additional_dependencies: ['clang-tidy==18.1.8']

- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: "v0.6.13"
hooks:
- id: cmake-format
additional_dependencies: [pyyaml]
- id: cmake-lint

0 comments on commit 42a8812

Please sign in to comment.