-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (40 loc) · 1.29 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (40 loc) · 1.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
# Pre-commit hooks for PTAB MCP
# Install: pip install pre-commit && pre-commit install
# Run manually: pre-commit run --all-files
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args:
- '--baseline'
- '.secrets.baseline'
- '--exclude-files'
- 'configs/.*\.json'
- '--exclude-files'
- '\.md$'
- '--exclude-files'
- 'package-lock\.json'
exclude: ^\.secrets\.baseline$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
exclude: ^\.secrets\.baseline$
- id: end-of-file-fixer
exclude: ^\.secrets\.baseline$
- id: check-yaml
- id: check-added-large-files
args: ['--maxkb=1000']
- id: check-json
exclude: ^configs/.*\.json$ # Allow placeholder keys in example configs
- id: check-merge-conflict
- id: detect-private-key
- repo: local
hooks:
- id: prompt-injection-check
name: Check for prompt injection patterns
entry: uv run python .security/check_prompt_injections.py
language: system
files: \.(py|txt|md|yml|yaml|json|js|ts|html|xml|csv)$
exclude: \.security/.*_detector\.py$