-
-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
77 lines (70 loc) · 2.2 KB
/
.pre-commit-config.yaml
File metadata and controls
77 lines (70 loc) · 2.2 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
repos:
- repo: local
hooks:
- id: codespell
name: codespell
entry: uv run codespell
language: system
types: [text]
- id: commitizen
name: commitizen check
entry: uv run cz check
args: [--allow-abort, --commit-msg-file]
stages: [commit-msg]
language: system
- id: editorconfig-checker
name: editorconfig-checker
entry: editorconfig-checker
language: system
types: [text]
exclude: \.md$|\.noeof\.|\.bundle$
- id: prettier
name: prettier
entry: prettier --write --list-different --ignore-unknown
stages: [pre-commit]
language: system
types: [text]
exclude: |
(?x)(
# Some API reference identifiers are dotted paths involving
# internal modules prefixed with `_` which are converted by
# Prettier to `\_`, making them invalid.
^docs/reference/.+\.md$|
# Those files have wrong syntax and would fail
^tests/demo_invalid/copier\.yml$|
^tests/demo_transclude_invalid(_multi)?/demo/copier\.yml$|
# HACK https://github.com/prettier/prettier/issues/9430
^tests/demo
)
- id: ruff-check
name: ruff-check
entry: uv run ruff check --fix
language: system
types_or: [python, pyi]
require_serial: true
- id: ruff-format
name: ruff-format
entry: uv run ruff format
language: system
types_or: [python, pyi]
require_serial: true
- id: taplo
name: taplo
entry: uv run taplo format
language: system
types: [toml]
require_serial: true
- id: rumdl
name: rumdl
entry: uv run rumdl check --fix
language: system
types: [markdown]
require_serial: true
exclude: |
(?x)(
# Those files have wrong syntax and would fail
^tests/demo_invalid/copier\.yml$|
^tests/demo_transclude_invalid(_multi)?/demo/copier\.yml$|
# HACK https://github.com/prettier/prettier/issues/9430
^tests/demo
)