Skip to content

Commit 083af1e

Browse files
committed
Add pre-commit hook config
1 parent 1149650 commit 083af1e

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: .pre-commit-config.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.5.0
4+
hooks:
5+
- id: check-case-conflict
6+
- id: check-symlinks
7+
- id: check-yaml
8+
- id: destroyed-symlinks
9+
- id: detect-private-key
10+
- id: end-of-file-fixer
11+
- id: mixed-line-ending
12+
args: [--fix=lf]
13+
- id: trailing-whitespace
14+
args: [--markdown-linebreak-ext=md]
15+
- repo: https://github.com/jlebar/pre-commit-hooks
16+
rev: 'master'
17+
hooks:
18+
- id: clang-format-diff-15.0.0
19+
files: \.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|(ino))$

0 commit comments

Comments
 (0)