mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 18:07:24 +01:00
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
10 lines
497 B
YAML
10 lines
497 B
YAML
# Add under `repos: - repo: local: hooks:` in a repo's .pre-commit-config.yaml,
|
|
# after copying check_repo_contract.shim.sh to scripts/check_repo_contract.sh.
|
|
# pass_filenames is false: the contract is about the repo, not the staged files.
|
|
- id: repo-contract
|
|
name: repo contract (CLAUDE.md Commands + test_changed)
|
|
entry: scripts/check_repo_contract.sh
|
|
language: system
|
|
pass_filenames: false
|
|
files: ^(CLAUDE\.md|AGENTS\.md|scripts/test_changed\.sh)$
|