55bac03eb0
后端 Pydantic schema 添加 Hant 繁体字段支持(guaNameHant, targetGuaNameHant, spiritNameHant, relationNameHant),解决 DerivedDivinationData extra=forbid 拒绝 AI 输出的繁体字段导致 agent_output 解析失败、历史记录为空的问题。 六爻解卦提示词修复:增加静卦五行生克链分析、假破假空降权、 六冲中性判断、用神核对防捏造、空亡数据对照等硬约束。 前端 Dart model 同步添加 Hant 字段(反向兼容,缺省为空字符串)。 其他:硬币翻转动画修复、弹窗单按钮居中、起卦按钮布局调整、 繁体 l10n 清理、pre-commit 排除集成测试。
38 lines
1.1 KiB
YAML
38 lines
1.1 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: bash -c "uv run basedpyright --level error backend/src 2>/dev/null"
|
|
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/
|
|
|