repos:
- repo: local
hooks:
- id: web-format
name: prettier check (web/)
entry: yarn --cwd rag/web format:check
language: system
files: ^rag/web/
pass_filenames: false
- id: web-lint
name: oxlint (web/)
entry: yarn --cwd rag/web lint
language: system
files: ^rag/web/
pass_filenames: false
- id: web-knip
name: knip (web/)
entry: yarn --cwd rag/web knip
language: system
files: ^rag/web/
pass_filenames: false
- id: shell-lint
name: shellcheck
entry: uvx --from shellcheck-py shellcheck
language: system
files: ^rag/.*\.sh$
exclude: ^rag/\.agents/
- id: dockerfile-lint
name: hadolint (deploy/)
entry: "bash -c 'cd rag && set -e; [ -x bin/hadolint ] || { mkdir -p bin && gh release download v2.12.0 -R hadolint/hadolint -p hadolint-Linux-x86_64 -O bin/hadolint && chmod +x bin/hadolint; }; bin/hadolint --config .hadolint.yaml deploy/all-in-one/Dockerfile deploy/split/Dockerfile'"
language: system
files: ^rag/deploy/.*Dockerfile
pass_filenames: false