-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
58 lines (52 loc) · 1.65 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
58 lines (52 loc) · 1.65 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
args: [--maxkb=1024]
- id: mixed-line-ending
- id: check-merge-conflict
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.3
hooks:
- id: clang-format
types_or: [c++, c]
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.27.0
hooks:
- id: gersemi
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.10
hooks:
- id: ruff-check
args: [--fix]
- id: ruff-format
- repo: local
hooks:
- id: doxygen-chip-check
name: doxygen chip + backtick sanity
description: Reject @c patterns that render as broken half-chips and docstrings with unclosed backtick spans.
entry: scripts/check-doxygen-chips.sh
language: script
files: ^include/.*\.(h|hpp)$
- id: doxygen-build
name: doxygen build (zero warnings)
description: Rebuild the Doxygen site and fail on any warning (WARN_AS_ERROR=FAIL_ON_WARNINGS_PRINT).
entry: scripts/check-doxygen-build.sh
language: script
pass_filenames: false
files: ^(include/.*\.(h|hpp)|docs/.*|cmake/DocsDep\.cmake|CMakeLists\.txt)$
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.13.10
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
args: [--msg-filename]
stages: [commit-msg]