-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy path.pre-commit-config.yaml
73 lines (65 loc) · 1.87 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
default_language_version:
python: python3
repos:
# Waiting on Hop311 to approve clang-format
# - repo: https://github.com/pre-commit/mirrors-clang-format
# rev: v19.1.3
# hooks:
# - id: clang-format
# files: \.(c|h|cpp|hpp|inc)$
# types_or: [text]
# # exclude: |
# # (?x)^(
# # )
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-tidy
files: \.(c|h|cpp|hpp|inc)$
args: [--fix, --quiet, --use-color]
types_or: [text]
additional_dependencies: [clang-tidy==19.1.0]
require_serial: true
stages: [manual] # Not automatically triggered, invoked via `pre-commit run --hook-stage manual clang-tidy`
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args: [--fix]
- id: ruff-format
exclude: |
(?x)^(
extension/doc_tools/make_rst.py|
extension/doc_tools/doc_status.py
)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
files: \.py$
types_or: [text]
- repo: https://github.com/crate-ci/typos
rev: v1.29.4
hooks:
- id: typos
exclude: |
(?x)^(
game/assets/localisation/locales/.*|
game/addons/.*
)
- repo: local
hooks:
- id: make-rst
name: make-rst
language: python
entry: python extension/doc_tools/make_rst.py
args: [extension, --dry-run, --color]
pass_filenames: false
files: ^(extension/doc_classes)/.*\.xml$
- id: doc-status
name: doc-status
language: python
entry: python extension/doc_tools/doc_status.py
args: [extension/doc_classes]
pass_filenames: false
files: ^(extension/doc_classes)/.*\.xml$