CI(pre-commit): Add aislop staged-mode gate

Add a local aislop pre-commit hook running "aislop ci
--staged" so newly staged code is gated against ai-slop
rules at commit time. Mirrors the full-enforcement aislop
hook used in pylocal-akuvox, but scoped to staged files so
it does not block commits over pre-existing slop in
untouched files.

Co-authored-by: Claude <claude@anthropic.com>
Signed-off-by: Andrew Grimberg <tykeal@bardicgrove.org>
This commit is contained in:
Andrew Grimberg
2026-06-18 14:45:22 -07:00
parent f39c0764a6
commit 088c983d0f
2 changed files with 12 additions and 0 deletions

1
.gitignore vendored
View File

@@ -13,5 +13,6 @@ htmlcov/
*.pyc
*.pyo
.aislop/history.jsonl
.aislop/install_id
.tox/
*.log

View File

@@ -58,6 +58,17 @@ repos:
- id: ruff-format
files: ^(scripts|tests|custom_components)/.+\.py$
- repo: local
hooks:
- id: aislop
name: aislop ci (staged)
entry: aislop ci --staged
language: node
additional_dependencies:
- aislop@0.12.0
pass_filenames: false
require_serial: true
- repo: https://github.com/adrienverge/yamllint.git
rev: cba56bcde1fdd01c1deb3f945e69764c291a6530 # frozen: v1.38.0
hooks: