mirror of
https://github.com/kuhyx/utils.git
synced 2026-11-10 19:07:17 +01:00
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file length / file-length (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
palette drift / palette (push) Has been cancelled
shared gate tests / gate unit tests (push) Has been cancelled
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
27 lines
848 B
YAML
27 lines
848 B
YAML
# vmbox hooks. The `files: ^vmbox/` scoping below is REQUIRED by
|
|
# meta/scripts/check_subproject_scope.sh -- without that literal line every
|
|
# hook here silently passes instead of running.
|
|
repos:
|
|
- repo: https://github.com/koalaman/shellcheck-precommit
|
|
rev: v0.10.0
|
|
hooks:
|
|
- id: shellcheck
|
|
files: ^vmbox/
|
|
args: [--severity=warning, --external-sources]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.6.9
|
|
hooks:
|
|
- id: ruff
|
|
files: ^vmbox/
|
|
- id: ruff-format
|
|
files: ^vmbox/
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: file-length-cap
|
|
name: enforce 250-line cap
|
|
entry: bash -c 'for f in "$@"; do n=$(wc -l < "$f"); if [ "$n" -gt 250 ]; then echo "$f has $n lines, over the 250-line cap"; exit 1; fi; done' --
|
|
language: system
|
|
files: ^vmbox/
|