项目文件夹

文件
wehub-resource-sync f3d80b4628
Auto Release / auto-release (push) Failing after 1s
CI / lint (push) Failing after 0s
CI / screenshot-quality (push) Failing after 3s
CI / pr-policy (push) Has been skipped
CI / test (3.11) (push) Failing after 0s
CI / test (3.12) (push) Failing after 0s
CI / test (3.13) (push) Failing after 3s
CI / coverage (push) Failing after 1s
Legibility / legibility (push) Failing after 3s
chore: import upstream snapshot with attribution
2026-07-13 12:31:48 +08:00

34 行
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]