build: uv 工具链、检查命令与提交前检查

- pyproject:Python 3.12、ruff、pyright strict、pytest(live/gpu 标记)、import-linter;
  首条导入契约:cadx 不导入 torch、sam2(design 0001 第 7 条)
- Makefile:sync/fmt/test/check
- pre-commit:gitleaks、拦截 data/runs/reference/reference-pdf/models 与 .env、ruff format
- 空包 cadx 与一项导入测试,让 make check 能跑通

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 23:42:36 -04:00
commit 5eb38df22d
13 changed files with 566 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 本地材料:不进 git(AGENTS.md 硬性约束 1、3),pre-commit 另有一道拦截。
# 末尾不加斜杠,这样同名的符号链接也能匹配。
/data
/runs
/reference
/reference-pdf
/models
.env
.env.*
!.env.example
# 上下文压缩前的交接快照,只在本地留存
/research-wiki/scratch/*compact*
.venv/
__pycache__/
*.py[cod]
.pytest_cache/
.ruff_cache/
.pyright/
.import_linter_cache/
.coverage
htmlcov/
dist/
*.egg-info/
# Claude Code 运行时文件
/.claude/scheduled_tasks.lock