Files
eryao/.pre-commit-config.yaml
T
2026-04-03 17:11:06 +08:00

38 lines
1.0 KiB
YAML

repos:
- repo: local
hooks:
- id: backend-ruff
name: backend ruff check
entry: uv run ruff check backend/src backend/tests
language: system
pass_filenames: false
files: ^(backend/|pyproject\.toml|uv\.lock)
- id: backend-python-syntax
name: backend python syntax check
entry: uv run python -m py_compile
language: system
files: ^backend/.*\.py$
- id: backend-basedpyright
name: backend basedpyright check
entry: uv run basedpyright backend/src
language: system
pass_filenames: false
files: ^backend/
- id: backend-pytest
name: backend pytest
entry: uv run pytest backend/tests
language: system
pass_filenames: false
files: ^(backend/|pyproject\.toml|uv\.lock)
- id: apps-flutter-analyze
name: apps flutter analyze
entry: bash -lc 'cd apps && flutter analyze'
language: system
pass_filenames: false
files: ^apps/