-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
62 lines (56 loc) · 1.46 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
62 lines (56 loc) · 1.46 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
default_language_version:
python: python3
fail_fast: false
repos:
# Ruff - Python linting & formatting
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.15
hooks:
- id: ruff-format
- id: ruff
args: [--fix]
# uv - Lockfile validation
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.17
hooks:
- id: uv-lock
# Shfmt - Shell script formatting
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.13.1-1
hooks:
- id: shfmt
args: [-i, "2", -ci, -bn]
files: \.(sh|bash)$
exclude: ^claude/
# Shellcheck - Shell script linting
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
hooks:
- id: shellcheck
files: \.(sh|bash)$
exclude: ^claude/
# Local hooks - TOML and custom validation
- repo: local
hooks:
- id: ty
name: ty type check
entry: uv run ty check src/
language: system
types: [python]
pass_filenames: false
- id: tombi-format
name: tombi format
entry: tombi format
language: system
types: [toml]
- id: tombi-lint
name: tombi lint
entry: tombi lint
language: system
types: [toml]
- id: pre-commit-autoupdate
name: Update pre-commit hooks
entry: pre-commit autoupdate
language: system
files: \.pre-commit-config.yaml$
pass_filenames: false