-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
97 lines (85 loc) · 2.6 KB
/
.pre-commit-config.yaml
File metadata and controls
97 lines (85 loc) · 2.6 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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
- id: ruff-check
name: Ruff (lint + autofix)
description: Fast Python linter (Flake8, isort, quotes, etc.) with --fix enabled
args: [--fix, .]
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: ty
name: ty (uv)
language: system
entry: uv
args: ['run', '--frozen', '--group', 'dev', '--', 'ty', 'check']
pass_filenames: false
always_run: true
types_or: [python, pyi]
- repo: local
hooks:
- id: mypy
name: Mypy (uv)
language: system
entry: uv
args: ['run', '--frozen', '--group', 'dev', '--', 'mypy', '--config-file=pyproject.toml']
pass_filenames: false
always_run: true
types_or: [python, pyi]
- repo: local
hooks:
- id: pyright
name: Pyright (uv)
language: system
entry: uv
args: ['run', '--frozen', '--group', 'dev', '--', 'pyright']
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: validate-xml-tags
name: Validate XML tags in Markdown
language: system
entry: uv
args: ['run', '--frozen', '--group', 'dev', '--', 'python', 'scripts/validate_xml_tags.py']
files: ^(agents/library|skills/library|system-prompts/library|output-styles/library)/.*\.md$
exclude: (CLAUDE\.md|README\.md)$
pass_filenames: true
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-json
name: Check JSON
description: Verify JSON syntax
exclude: ^CHANGELOG\.md$
- id: check-yaml
name: Check YAML
description: Verify YAML syntax
- id: end-of-file-fixer
name: End-of-file fixer (non-Python)
description: Ensures every *non-Python* file is empty or ends with a single newline
exclude: ^.*\.(json|pyi?|py)$
- id: trailing-whitespace
name: Trailing-whitespace (non-Python)
description: Trims trailing whitespace in non-Python text files
exclude: ^.*\.(pyi?|py)$
- id: check-shebang-scripts-are-executable
name: Check shebang scripts
description: Check that text files with a shebang are executable
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.20.0
hooks:
- id: markdownlint-cli2
name: Markdown Lint
exclude: ^CHANGELOG\.md$
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.9.21
hooks:
- id: uv-lock
name: Make sure uv.lock file is up to date
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.11.1
hooks:
- id: commitizen