-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
38 lines (37 loc) · 1.34 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
38 lines (37 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 34b241d706d24e4ccb69e38f9f0fa190b5f486ec # frozen: v23.1.0
hooks:
- id: clang-format
types_or: [file]
files: \.(c|h|cpp|hpp|ipp|cppm|cu|cuh|sycl|hip)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- repo: local
hooks:
- id: cppcheck
name: cppcheck
entry: cppcheck --project=build/compile_commands.json --enable=all --cppcheck-build-dir=build --suppressions-list=cppcheck.suppressions -i "build/_deps/*" --error-exitcode=1 --check-level=exhaustive --inline-suppr
types: [c++]
language: system
pass_filenames: false
- id: clang-tidy
name: clang-tidy
entry: run-clang-tidy -p build/ -header-filter='.*'
types: [c++]
language: system
exclude: (build|downstream)
- repo: https://codeberg.org/fsfe/reuse-tool
rev: a1bb792acda6fd0724936b4ebbdbc8eceb9c0459 # frozen: v6.2.0
hooks:
- id: reuse
- repo: https://github.com/BlankSpruce/gersemi-pre-commit
rev: c1c636fef559eeef0dae280afcd44420f6126e63 # frozen: 0.28.1
hooks:
- id: gersemi
args: ["-i"]