mirror of
https://github.com/tykeal/homeassistant-rental-control.git
synced 2026-06-24 08:47:51 +00:00
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:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -13,5 +13,6 @@ htmlcov/
|
||||
*.pyc
|
||||
*.pyo
|
||||
.aislop/history.jsonl
|
||||
.aislop/install_id
|
||||
.tox/
|
||||
*.log
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user