-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
46 lines (41 loc) · 1.38 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: '.*\.(uasset|umap|uproject|uplugin|pxd)$'
- id: end-of-file-fixer
exclude: '^Config/.*\.ini$|.*\.(uasset|umap|uproject|uplugin|pxd)$'
- id: check-added-large-files
args: ["--maxkb=102400"]
- id: mixed-line-ending
exclude: '.*\.(uasset|umap|uproject|uplugin|pxd)$'
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.6
hooks:
- id: clang-format
types_or: [c++]
args: [--style=file:.clang-format]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
args: ["--write", "--config", ".prettierrc"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: forbid-crlf
- id: remove-crlf
- id: forbid-tabs
exclude: '.*\.(uasset|umap|uproject|uplugin|pxd)$|Makefile'
- id: remove-tabs
args: [--whitespaces-count, "4"]
exclude: '.*\.(uasset|umap|uproject|uplugin|pxd)$|Makefile'
- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
- id: black
args: ["--config", "pyproject.toml"]
exclude: '.*\.(pxd)$'