Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (52 loc) · 1.81 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
58 lines (52 loc) · 1.81 KB
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
---
# Pre-commit hooks for datagram_engine.
# Install: pre-commit install
# Run manually: pre-commit run --all-files
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
- id: check-yaml
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args: [--fix=lf]
files: '(\.(cpp|cppm|h|yml|yaml|md|cmake|sh)|CMakeLists\.txt)$'
- id: fix-byte-order-marker
files: '(\.(cpp|cppm|h|yml|yaml|md|cmake|sh)|CMakeLists\.txt)$'
- id: trailing-whitespace
files: '(\.(cpp|cppm|h|yml|yaml|md|cmake|sh)|CMakeLists\.txt)$'
- id: end-of-file-fixer
files: '(\.(cpp|cppm|h|yml|yaml|md|cmake|sh)|CMakeLists\.txt)$'
- repo: https://github.com/lucas-c/pre-commit-hooks
rev: v1.5.6
hooks:
- id: remove-tabs
name: Tabs to 4 Spaces (Code)
args: [--whitespaces-count, '4']
files: '(\.(cpp|cppm|h|cmake)|CMakeLists\.txt)$'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.2
hooks:
- id: clang-format
files: '\.(cpp|cppm|h)$'
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
# cmake-format is deliberately omitted: its layout algorithms don't preserve
# the project's hand-formatted multi-line style. cmake-lint catches structural
# issues without imposing formatting.
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-lint
additional_dependencies: [pyyaml]
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
args:
- "-f=colored"
exclude: '^\.(clang-format|clang-tidy)$'