Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
137 lines (123 loc) · 3.79 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
137 lines (123 loc) · 3.79 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
---
# Pre-requisites:
# pip install pre-commit conventional-pre-commit
# pre-commit install
# pre-commit install --install-hooks -t commit-msg
# pre-commit autoupdate
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: true
exclude: .pre-commit-config.yaml|target/
repos:
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.44.0
hooks:
- id: markdownlint-fix
args:
[
--disable=MD013,
--disable=MD024,
--disable=MD033,
--disable=MD041,
--disable=MD046,
--fix,
]
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--mapping, "2", --sequence, "4", --offset, "2"]
exclude: ^charts/[^/]+/templates/|pnpm-lock\.yaml$
- repo: https://github.com/crate-ci/typos
rev: v1.31.1
hooks:
- id: typos
exclude: nix/signing-keys/|nix/expected-hashes/|server/src/session/jwt.rs
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: remove-crlf
- id: forbid-crlf
- id: remove-tabs
exclude: ^.git/
- id: forbid-tabs
exclude: ^.git/
- repo: https://github.com/sirosen/texthooks
rev: 0.6.8
hooks:
- id: fix-smartquotes
- id: fix-ligatures
- id: fix-spaces
- id: forbid-bidi-controls
- id: macro-expand
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shellcheck
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-byte-order-marker
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-vcs-permalinks
- id: check-xml
- id: check-yaml
exclude: ^charts/[^/]+/templates/
- id: debug-statements
- id: destroyed-symlinks
- id: detect-private-key
exclude: server/tests/|nix/signing-keys/
- id: double-quote-string-fixer
- id: end-of-file-fixer
exclude: nix/expected-hashes/
- id: mixed-line-ending
args: [--fix=lf]
exclude: nix/expected-hashes/
- id: trailing-whitespace
exclude: nix/expected-hashes/
- repo: local
hooks:
- id: cargo-fmt
name: cargo fmt
language: system
entry: cargo fmt --all -- --check
types: [rust]
pass_filenames: false
- id: admin-ui-lockfile
name: admin-ui lockfile in sync with package.json (CI frozen install)
language: system
entry: bash -c 'cd admin-ui && pnpm install --frozen-lockfile --lockfile-only --ignore-scripts'
files: ^admin-ui/(package\.json|pnpm-lock\.yaml|pnpm-workspace\.yaml)$
pass_filenames: false
- id: admin-ui-format
name: admin-ui prettier format check
language: system
entry: bash -c 'cd admin-ui && pnpm prettier . --check'
files: ^admin-ui/
pass_filenames: false
- id: admin-ui-test
name: admin-ui unit and integration tests
language: system
entry: bash -c 'cd admin-ui && pnpm test:unit && pnpm test:integration'
files: ^admin-ui/
pass_filenames: false
- id: admin-ui-build
name: admin-ui build
language: system
entry: bash -c 'cd admin-ui && pnpm build'
files: ^admin-ui/
pass_filenames: false