Files
lightrag/.pre-commit-config.yaml
yangdx af359f83fc Exclude lightrag/api/webui from pre-commit hooks.
- Added .gitattributes for webui files(exclude it from git dfff)
- Excluded webui from trailing-whitespace hook
- Excluded webui from end-of-file-fixer
- Excluded webui from ruff-format hook
- Excluded webui from check-manifest hook
2025-03-11 16:13:51 +08:00

29 lines
711 B
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/