-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
45 lines (41 loc) · 1.51 KB
/
.pre-commit-config.yaml
File metadata and controls
45 lines (41 loc) · 1.51 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
# Generated by Correctless /csetup — review and customize as needed
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-merge-conflict
- id: check-added-large-files
args: ['--maxkb=500']
- id: detect-private-key
- id: check-case-conflict
# Secret scanning — catches secrets before they enter the repo
- repo: https://github.com/gitleaks/gitleaks
rev: 83d9cd684c87d95d656c1458ef04895a7f1cbd8e # frozen: v8.30.1
hooks:
- id: gitleaks
args: [--baseline-path, gitleaks-report.json]
# Typos in code and docs
- repo: https://github.com/crate-ci/typos
rev: 0fa392de4a080a8f22469c05415090ee3addf4fb # frozen: v1.28.4
hooks:
- id: typos
# Correctless sync check — ensures source files match distribution copies
- repo: local
hooks:
- id: correctless-sync-check
name: correctless sync check
entry: bash sync.sh --check
language: system
pass_filenames: false
files: ^(skills/|hooks/|templates/|helpers/)
# ShellCheck for shell scripts (severity matches CI config)
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: a23f6b85d0fdd5bb9d564e2579e678033debbdff # frozen: v0.10.0.1
hooks:
- id: shellcheck
args: ['--severity=warning']
exclude: '^\.claude/hooks/'