-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
84 lines (80 loc) · 2.34 KB
/
.pre-commit-config.yaml
File metadata and controls
84 lines (80 loc) · 2.34 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
repos:
- repo: local
hooks:
- id: generate-api-client
name: "Generate: API TypeScript types"
entry: ./web/src/api/generate-api-pre-commit.sh
language: system
pass_filenames: false
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.4.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
name: "Validate: Commit is conventional"
args:
[
build,
chore,
ci,
ops,
docs,
feat,
fix,
perf,
refactor,
revert,
style,
test,
_fix,
_feat,
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-ast
name: "Validate: parse .py files"
language_version: python3.13
- id: check-json
name: "Validate: parse .json files"
exclude: ".devcontainer"
- id: check-yaml
name: "Validate: parse .yaml files"
args: ["--allow-multiple-documents"]
exclude: mkdocs.yml
- id: check-toml
name: "Validate: parse .toml files"
- id: check-merge-conflict
name: "Validate: no merge conflict strings"
- id: check-case-conflict
name: "Validate: no case conflicting file names"
- id: trailing-whitespace
name: "Lint: remove trailing whitespaces"
exclude: ^(.*\.(lock)$|docs/|web/src/api/generated/)
- id: end-of-file-fixer
name: "Lint: end all files with single empty line"
exclude: ^(.*\.(lock)$|docs/|web/src/api/generated/)
- id: mixed-line-ending
exclude: ^(.*\.(lock)$|docs/|web/src/api/generated/)
- id: detect-private-key
exclude: api/tests/integration/conftest.py
exclude_types:
- markdown
- repo: local
hooks:
- id: ruff
name: "Lint: ruff (python)"
language: system
types: [text]
files: "\\.py$"
entry: mise run lint-ruff
pass_filenames: false
- repo: local
hooks:
- id: biome
name: "Lint: biome (js/ts/json)"
language: system
types: [text]
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|s?css)$"
entry: mise run lint-biome
pass_filenames: false