37 lines
1.0 KiB
YAML
37 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-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/
|
|
|
|
- id: apps-flutter-test
|
|
name: apps flutter test
|
|
entry: bash -lc 'cd apps && flutter test'
|
|
language: system
|
|
pass_filenames: false
|
|
files: ^apps/
|