Files
CADx-4/tests/test_package.py
iomgaa 5eb38df22d 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>
2026-10-15 23:42:36 -04:00

8 lines
200 B
Python

"""包能被导入:make check 至少要有一项测试,否则 pytest 以「没收集到测试」失败。"""
import cadx
def test_package_imports() -> None:
assert cadx.__doc__ is not None