-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
61 lines (61 loc) · 1.83 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-executables-have-shebangs
# Formatter for XML, Json, Toml and Yaml files
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.1
hooks:
- id: prettier
types: [json, yaml, toml, xml]
additional_dependencies:
- "prettier@3.0.1"
- "@prettier/plugin-xml@v3.2.0"
# Formatter for markdown files
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
args: ["--number"]
additional_dependencies:
- mdformat-gfm
- mdformat-tables
- mdformat-frontmatter
- mdformat-black
- mdformat-shfmt
# Formatter for c and cpp files
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
args: [--style=InheritParentConfig, -i, --no-diff]
types_or: [c++, c]
exclude: "(CvGameCoreDLL/bin|CvGameCoreDLL/Boost-1.32.0|CvGameCoreDLL/Python24)/.*"
# An extremely fast Python linter, written in Rust
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.3"
hooks:
- id: ruff
# Formatter for python files
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
args: ["--config", "pyproject.toml"]
additional_dependencies:
- click==8.0
exclude: |
(?x)^(
Assets/Python/data/maps/.* |
Assets/Python/BUFFY/.* |
Assets/Python/BUG/.* |
Assets/Python/Contrib/.* |
Assets/Python/pyHelper/.* |
Assets/Python/CvUtil.py
)$