feat: 切换邮箱认证并重构前后端启动与门禁
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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/
|
||||
Reference in New Issue
Block a user