-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
101 lines (94 loc) · 2.54 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
101 lines (94 loc) · 2.54 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
98
99
100
101
# Pre-commit configuration for VY Prompt Master
# Ensures code quality and security before commits
repos:
# Secret scanning
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.0
hooks:
- id: gitleaks
name: Detect hardcoded secrets
description: Scan commits for secrets using gitleaks
entry: gitleaks protect --verbose --redact --staged
language: golang
pass_filenames: false
# YAML linting
- repo: https://github.com/adrienverge/yamllint
rev: v1.32.0
hooks:
- id: yamllint
name: Lint YAML files
description: Check YAML syntax and style
files: \.(yaml|yml)$
exclude: |
(?x)^(
node_modules/|
dist/|
package-lock.json|
coverage/
)
args:
- -c
- |
extends: default
rules:
line-length: disable
document-start: disable
truthy:
allowed-values: ['true', 'false', 'on', 'off', 'yes', 'no']
# JSON linting
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-json
name: Validate JSON syntax
files: \.json$
exclude: |
(?x)^(
node_modules/|
dist/|
package-lock.json
)
# Check for merge conflicts
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
name: Check for merge conflict markers
# Trailing whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
name: Remove trailing whitespace
exclude: |
(?x)^(
node_modules/|
dist/|
\.min\.| # Don't touch minified files
coverage/
)
# End-of-file fixer
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
name: Ensure files end with newline
exclude: |
(?x)^(
node_modules/|
dist/|
coverage/
)
# Check for large files
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
name: Check for large file additions
args: ['--maxkb=500']
exclude: |
(?x)^(
test/| # Allow large test fixtures
fixtures/|
examples/
)