Skip to content

Commit fbac82f

Browse files
Grolleau-BenjaminGrom-
authored andcommitted
[git] setup pre-commit
1 parent efb38bb commit fbac82f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/mirrors-clang-format
3+
rev: v15.0.7
4+
hooks:
5+
- id: clang-format
6+
types_or: [c++, c]
7+
8+
- repo: https://github.com/pre-commit/pre-commit-hooks
9+
rev: v4.4.0
10+
hooks:
11+
- id: trailing-whitespace
12+
- id: end-of-file-fixer
13+
- id: mixed-line-ending
14+
args: [--fix=no]
15+
- id: check-yaml
16+
args: [--allow-multiple-documents]
17+
- id: check-added-large-files
18+
- id: check-json
19+
- id: pretty-format-json
20+
args: [--autofix, --indent=4, --no-ensure-ascii, --no-sort-keys]
21+
- id: detect-private-key

0 commit comments

Comments
 (0)