Files

38 lines
1.1 KiB
YAML
Raw Permalink Normal View History

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$
2026-04-03 17:11:06 +08:00
- id: backend-basedpyright
name: backend basedpyright check
entry: bash -c "uv run basedpyright --level error backend/src 2>/dev/null"
2026-04-03 17:11:06 +08:00
language: system
pass_filenames: false
files: ^backend/
- id: backend-pytest
name: backend pytest
entry: uv run pytest backend/tests -m "not integration"
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/