Conventional Commits
由 tools/commit_schema.py 强制(commit-msg 钩子 + PR 标题检查)。PR 标题会成为 squash 提交主题。
- type(scope): subject —— 标题 ≤ 100 字符,结尾不加句号
- feat/fix 必须带 scope;scope 与 release notes 标签一一对应
- 破坏性变更:标题加 !,footer 写 BREAKING CHANGE:
从一个可复现问题开始,让每次改动都保持清晰、可测试、可讨论。
Fork 仓库后克隆到本地。
git clone https://github.com/<you>/TensorPlay.git
cd TensorPlay一个分支一个主题,评审最快。
git checkout -b feat/my-changePEP 517 构建(scikit-build-core);MAX_JOBS 限制并行度。
pip install -e .pytest 必须通过;不稳定测试打 kind/flaky 标签,而不是悄悄重跑。
pytest test/由 tools/commit_schema.py 强制(commit-msg 钩子 + PR 标题检查)。PR 标题会成为 squash 提交主题。
按改动落点选择 scope;release notes 依据它自动归类。
Python 带类型标注并用 black 格式化;C++ 遵循 Google 风格,用 clang-format。
新 Issue 和 PR 进入 needs-triage 并自动上项目板;milestone 按发布分桶。