-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
78 lines (69 loc) · 2.34 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
78 lines (69 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
repos:
- repo: local
hooks:
- id: ruff
name: ruff (lint)
language: system
entry: uv run ruff check .
pass_filenames: false
always_run: true
- id: ruff-format
name: ruff (format check)
language: system
entry: uv run ruff format --check .
pass_filenames: false
always_run: true
- id: pytest
name: pytest (unit)
language: system
entry: uv run --group seed pytest --no-cov -x -m "not integration and not browser"
pass_filenames: false
always_run: true
- id: eslint
name: eslint
language: system
entry: npm run lint:js
pass_filenames: false
files: \.js$
- id: prettier
name: prettier (check)
language: system
entry: npm run format:js:check
pass_filenames: false
files: \.js$
- id: vitest
name: vitest
language: system
entry: npm run test:js
pass_filenames: false
always_run: true
- id: bats
name: bats (shell tests)
language: system
entry: npm run test:sh
pass_filenames: false
always_run: true
- id: shellcheck
name: shellcheck
language: system
entry: uv run shellcheck
files: ^(scripts/.*\.sh|\.claude/hooks/.*\.sh)$
# These hooks are symlinks into vendored skills (skills-vendor policy:
# never edit; targets absent until the submodule is initialised).
# pre-commit passes regular files only, so a symlinked hook is already
# skipped — the list is the stated intent, not the mechanism.
# socraticode-reminder joined it in #463, when the 12-tool divergence
# retired and the hand-authored copy became a symlink like the others.
exclude: ^\.claude/hooks/(context-budget-guard|skills-submodule-update|socraticode-reminder)\.sh$
- id: check-version-sync
name: version sync (pyproject.toml == package.json)
language: system
entry: scripts/check_version_sync.sh
pass_filenames: false
files: ^(pyproject\.toml|package\.json)$
- id: terraform-fmt
name: terraform fmt (check)
language: system
entry: terraform fmt -check -recursive infra/terraform/
pass_filenames: false
files: \.tf$