-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
61 lines (60 loc) · 1.64 KB
/
.pre-commit-config.yaml
File metadata and controls
61 lines (60 loc) · 1.64 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
59
60
61
exclude: ^(\.bumpversion\.cfg|CHANGELOG\.md|site/|webui/dist/|webui/node_modules/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
exclude: ^mkdocs\.yml$
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
args: [--fix, lf]
- id: detect-private-key
- id: check-toml
- id: check-json
- id: pretty-format-json
args: [--autofix, --indent, '2']
exclude: ^webui/
- id: check-added-large-files
args: [--maxkb=500]
- id: check-merge-conflict
- id: check-case-conflict
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0
hooks:
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
types_or: [javascript, jsx, ts, tsx, json, css, markdown]
files: ^webui/
additional_dependencies:
- prettier@3.2.5
- repo: local
hooks:
- id: dotnet-format
name: dotnet format
entry: dotnet format
language: system
types: [c#]
pass_filenames: false
- id: dotnet-build
name: dotnet build
entry: dotnet build --configuration Release
language: system
pass_filenames: false
- id: webui-build
name: webui build
entry: node scripts/pre-commit-webui-build.cjs
language: system
pass_filenames: false
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
submodules: false