9ace51585d
* Add screenshot standards and automated evidence validation * docs: add WS proxy debugging failure experience and debugging standards * docs: 添加 PR #26 测试证据截图 * fix: 添加 debugging-standards.md 缺失的 frontmatter * fix: pre-commit pytest timeout 30s->60s, legibility 用 uv run python * ci: pre-commit 排除 slow/e2e 测试,添加手动运行提醒 --------- Co-authored-by: 廖浩淳 <liaohaochun@liaohaochundeMac-mini.local>
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
repos:
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.11.12
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix]
|
|
- id: ruff-format
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: pytest
|
|
name: pytest (fast, excludes slow/e2e)
|
|
entry: uv run pytest -x -q --timeout=30 -m "not slow and not real_e2e" --ignore=tests/e2e
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
stages: [pre-commit]
|
|
|
|
- id: e2e-reminder
|
|
name: e2e reminder
|
|
entry: sh -c 'echo "⚠️ pre-commit 跳过了 slow/e2e 测试。push 前请手动运行:"; echo " uv run pytest tests/ -x --timeout=60"; echo " uv run pytest tests/e2e/ --run-real-e2e --timeout=180"; exit 0'
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
stages: [pre-commit]
|
|
|
|
- id: legibility
|
|
name: legibility
|
|
entry: uv run python scripts/check_legibility.py
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
stages: [pre-commit]
|