-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
46 lines (44 loc) · 1.16 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
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java|glsl)$
types_or: [text]
exclude: |
(?x)^(
engine.* |
.*thirdparty.* |
.modules/jolt.* |
.modules/input_glyphs.*
)
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.2.0
hooks:
- id: black
files: (\.py$|SConstruct|SCsub)
types_or: [text]
exclude: |
(?x)^(
engine.* |
.*thirdparty.* |
.modules/jolt.* |
.modules/input_glyphs.*
)
args:
- --line-length=120
- repo: local
hooks:
- id: copyright-headers-swansong
name: copyright-headers-swansong
language: python
verbose: true
entry: python3 modules/game/misc/scripts/copyright_headers.py
files: \.(c|h|cpp|hpp|cc|cxx|m|mm|inc|java)$
exclude: |
(?x)^(
engine.* |
.*thirdparty.* |
.modules/jolt.* |
.modules/input_glyphs.*
)