mirror of
https://github.com/ivuorinen/coderabbit.git
synced 2026-03-17 19:00:55 +00:00
Add pre-commit hooks (YAML lint, schema validation, editorconfig), CI workflow, and new path instructions for test files, Dockerfiles, config files, and archival docs.
36 lines
1006 B
YAML
36 lines
1006 B
YAML
---
|
|
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
|