feat: add validation tooling and expand path review instructions

Add pre-commit hooks (YAML lint, schema validation, editorconfig),
CI workflow, and new path instructions for test files, Dockerfiles,
config files, and archival docs.
This commit is contained in:
2026-03-08 23:37:35 +02:00
parent 1985ff756e
commit 589f5ab0e2
7 changed files with 116 additions and 6 deletions

35
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,35 @@
---
repos:
# Standard hooks: basic file hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
args: ['--allow-multiple-documents']
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
# YAML linting
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
args: [--strict]
# JSON Schema validation against CodeRabbit's official schema
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.37.0
hooks:
- id: check-jsonschema
name: Validate coderabbit.yaml against schema
files: ^coderabbit\.yaml$
args:
- '--schemafile'
- 'https://storage.googleapis.com/coderabbit_public_assets/schema.v2.json'
# EditorConfig compliance
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: '3.6.1'
hooks:
- id: editorconfig-checker