39fe248f9f
- 新增 .claude/skills/new-project/SKILL.md(标准 skill 格式) - install-skill.sh 安装时组装 SKILL.md + verify.sh,单一源无重复 - verify.sh 改用索引数组替代 declare -A,兼容 macOS bash 3.2 - log_pass/log_skip 显式 return 0,避免 set -e 下非 verbose 误退出 - README 改为 skill 优先;补全 copier.yml/scripts/template 入库
1.1 KiB
1.1 KiB
质量门禁(CI 强制)
lint / format / type / test 门禁表 + 依赖安全 / 供应链。
提交即跑(.pre-commit-config.yaml),CI 再跑一遍(.github/workflows/ci.yml)。任一不过禁止合并。
| 语言 | Lint | 格式化 | 类型 | 测试 |
|---|---|---|---|---|
| Python | ruff check | ruff format | mypy(strict) | pytest |
| TypeScript | eslint | prettier | tsc --noEmit | vitest |
- 安装钩子:
pre-commit install - mypy / tsc 必须零 error;ruff / eslint 零 warning
- 配置位置:Python 在各
pyproject.toml,TS 在frontend/的 eslint/prettier/tsconfig - 架构边界由 import-linter(Python)/ dependency-cruiser(TS)在 CI 强制(见
architecture.md)
依赖安全 / 供应链
- 锁文件必须提交,CI 用
--frozen/--frozen-lockfile安装(拒绝漂移) - CI 跑依赖审计:Python
uv run pip-audit,前端pnpm audit --audit-level high - 启用 Dependabot/Renovate 自动提依赖更新 PR(
.github/dependabot.yml) - 新增依赖须评估必要性,优先标准库;不引入无维护/单文件的小众包