-
Notifications
You must be signed in to change notification settings - Fork 56
/
.pre-commit-config.yaml
80 lines (70 loc) · 2.33 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
ci:
skip: [ ]
default_install_hook_types:
- pre-commit
- pre-merge-commit
- pre-push
- prepare-commit-msg
- commit-msg
- post-commit
- post-checkout
- post-merge
- post-rewrite
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
args: [ --maxkb=200 ]
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-vcs-permalinks
- id: destroyed-symlinks
- id: detect-private-key
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args: [ --fix=lf ]
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- id: check-yaml
args: [ --allow-multiple-documents ]
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 3.0.3
hooks:
- id: editorconfig-checker
name: check .editorconfig rules
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.5
hooks:
- id: clang-format
- repo: https://github.com/Kr4is/cmake-format-precommit
rev: v0.6.14
hooks:
- id: cmake-format
args: [ --config=.cmake-format.yml ]
- id: cmake-lint
args: [ --config=.cmake-linter.yml ]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
- id: remove-tabs
name: tabs remover
args: [ --whitespaces-count, '2' ]
- id: insert-license
files: \.(h(pp)|h(pp.in)|c(pp)|h(pp.in)?)$
args: [--license-filepath, .LICENSE, --comment-style, /*|*|*/, --use-current-year, --allow-past-years, --fuzzy-match-generates-todo, --fuzzy-ratio-cut-off, '85', --fuzzy-match-todo-instructions, ' TODO: Delete the inconsistent license and above line and rerun pre-commit to insert a good license. If this is the desired behavior add "// insert-license=off" at the beginning to the file.', --skip-license-insertion-comment, '// insert-license=off' ]
#- repo: https://github.com/cpp-linter/cpp-linter-hooks
# rev: v0.2.1
# hooks:
# - id: clang-tidy
# args: [--checks=.clang-tidy]