mirror of
https://github.com/C4illin/ConvertX.git
synced 2026-11-11 16:50:57 +01:00
18 lines
568 B
YAML
18 lines
568 B
YAML
# Configure pre-commit to reuse the AI indicator guard scripts.
|
|
# Both hooks run locally from .config/ai-hooks.
|
|
|
|
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: ai-pre-commit
|
|
name: Block AI indicators in staged files
|
|
entry: python3 .config/git-hooks/ai_guard.py pre-commit
|
|
language: system
|
|
pass_filenames: false
|
|
stages: [pre-commit]
|
|
- id: ai-commit-msg
|
|
name: Block AI indicators in commit messages
|
|
entry: python3 .config/git-hooks/ai_guard.py commit-msg
|
|
language: system
|
|
stages: [commit-msg]
|