Skip to content

Commit 4a4f950

Browse files
committed
Add pre-commit hooks
1 parent 2e08b47 commit 4a4f950

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.pre-commit-config.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v5.0.0
6+
hooks:
7+
- id: end-of-file-fixer
8+
- id: check-json
9+
- id: check-yaml
10+
- id: trailing-whitespace
11+
- repo: https://github.com/pre-commit/mirrors-clang-format
12+
rev: v20.1.5 # clang-format version
13+
hooks:
14+
- id: clang-format
15+
- repo: https://github.com/cpplint/cpplint
16+
rev: 2.0.1
17+
hooks:
18+
- id: cpplint
19+
- repo: https://github.com/igorshubovych/markdownlint-cli
20+
rev: v0.45.0
21+
hooks:
22+
- id: markdownlint-fix
23+
- repo: https://github.com/tcort/markdown-link-check
24+
rev: v3.13.7
25+
hooks:
26+
- id: markdown-link-check
27+
args: [-q]

0 commit comments

Comments
 (0)