-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
69 lines (63 loc) · 2.29 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
69 lines (63 loc) · 2.29 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
# Pre-commit hooks configuration
# See https://pre-commit.com for more information
repos:
# Mypy - Python static type checking (using uv)
- repo: local
hooks:
- id: mypy
name: mypy
entry: uv run mypy .
language: system
pass_filenames: false
types_or: [python, pyi]
# Ruff - Python linting and formatting (using uv)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.3
hooks:
# Run the linter
- id: ruff
name: ruff check
args: [--fix]
types_or: [python, pyi]
# Run the formatter
- id: ruff-format
name: ruff format
types_or: [python, pyi]
# Standard pre-commit hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args: ['--maxkb=1000']
# Conventional Commits - validate commit message format
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.3.0
hooks:
- id: conventional-pre-commit
name: conventional commits
stages: [commit-msg]
args: []
# Detect secrets - prevent committing sensitive information
- repo: https://github.com/ibm/detect-secrets
rev: 0.13.1+ibm.64.dss
hooks:
- id: detect-secrets
name: detect secrets
args: ['--baseline', '.secrets.baseline']
# Narrowly skip only the generated example-wiki tree and the schema doc's
# worked examples: their 12-hex guideline content-hashes and session UUIDs
# are identifiers, not secrets. Hand-written code/docs/harness under
# explorations/agent-wiki/ stay scanned. (Mirrors the ruff/mypy scoping,
# which excludes only explorations/agent-wiki/wikis/.)
exclude: 'package.lock.json|^explorations/agent-wiki/wikis/|^explorations/agent-wiki/docs/schema\.md$'
# Plugin render-equality gate — fails if platform-integrations/ has drifted
# from plugin-source/. Runs whenever plugin-source/ or the rendered tree
# under platform-integrations/ has changed.
- repo: local
hooks:
- id: plugins-rendered
name: plugins-rendered
entry: uv run python plugin-source/build_plugins.py check
language: system
pass_filenames: false
files: ^(plugin-source/|platform-integrations/)