Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c6c5a81

Browse files
committedJan 22, 2024
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

+17
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)
Please sign in to comment.