LightRAG/.pre-commit-config.yaml
Taddeus aeefc06905 Refactor build and packaging scripts, add Helm Makefile, and configure actionlint matcher
Removes legacy type schema generation Makefile and updates pre-commit hook to use new Makefile command.

Introduces a comprehensive Makefile to manage Helm chart packaging, publishing, testing, linting, and Docker image workflows, streamlining Apolo project automation and aligning with upstream LightRAG packaging conventions.

Adds GitHub Action problem matcher configuration for actionlint to improve workflow diagnostics.

Enhances maintainability and developer experience by centralizing build and deployment processes.

Relates to MLO-469
2025-11-03 14:58:11 +02:00

48 lines
1.1 KiB
YAML

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: ^lightrag/api/webui/
- id: end-of-file-fixer
exclude: ^lightrag/api/webui/
- id: requirements-txt-fixer
exclude: ^lightrag/api/webui/
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.4
hooks:
- id: ruff-format
exclude: ^lightrag/api/webui/
- id: ruff
args: [--fix, --ignore=E402]
exclude: ^lightrag/api/webui/
- repo: https://github.com/mgedmin/check-manifest
rev: "0.49"
hooks:
- id: check-manifest
stages: [manual]
exclude: ^lightrag/api/webui/
- repo: https://github.com/mrtazz/checkmake.git
rev: 0.2.2
hooks:
- id: checkmake
- repo: https://github.com/gruntwork-io/pre-commit
rev: v0.1.30
hooks:
- id: helmlint
- repo: local
hooks:
- id: generate-types-schemas
name: Generate types schemas
entry: make gen-types-schemas
language: system