-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
44 lines (43 loc) · 1.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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: ^(test_data|\.vscode|cmake|tools/spec2cpp/specification-.*)
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: ^(src/gui/scriptpanel.cpp)
- id: end-of-file-fixer
- id: check-case-conflict
- id: check-merge-conflict
- id: check-json
- id: check-yaml
args: [--allow-multiple-documents]
- id: pretty-format-json
args: [--autofix, --no-sort-keys, --indent=4]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.5
hooks:
- id: clang-format
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v2.1.1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
exclude: ^(tests/tst_textdocument.cpp)
- repo: https://github.com/fsfe/reuse-tool
rev: v3.1.0a1
hooks:
- id: reuse
args: [--suppress-deprecation]