Skip to content

Commit 5b51d15

Browse files
authored
Merge pull request #297 from vkucera/pre-commit
Add pre-commit hooks
2 parents 482e366 + 75cba9c commit 5b51d15

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.pre-commit-config.yaml

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

0 commit comments

Comments
 (0)