Skip to content

Commit c6c5a81

Browse files
committed
Add hook config
1 parent c69ca14 commit c6c5a81

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
args: [--markdown-linebreak-ext=md]
9+
- id: detect-private-key
10+
- id: destroyed-symlinks
11+
- id: mixed-line-ending
12+
args: [--fix=lf]
13+
- repo: https://github.com/pre-commit/mirrors-clang-format
14+
rev: 'v15.0.7'
15+
hooks:
16+
- id: clang-format
17+
types_or: [c++, c]

0 commit comments

Comments
 (0)