Files
liaohch3--claude-tap/.pre-commit-config.yaml
liaohch3 9ace51585d docs: 截图质量标准 + WS 调试失败经验 + 自动化截图检查脚本 (#26)
* 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>
2026-03-03 22:33:16 +08:00

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]