|
| 1 | +# Contributing |
| 2 | + |
| 3 | +## 中文摘要 |
| 4 | + |
| 5 | +- 用途:本文档说明如何向 `ResearchSignalContextPipelines` 提交低风险、可审阅的变更。 |
| 6 | +- 主要覆盖:`Ground Rules`、`Documentation Standards`、`Branching and Pull Requests`、`Local Verification`。 |
| 7 | +- 阅读顺序:先确认仓库边界和变更范围,再运行适合本仓库的本地校验。 |
| 8 | +- 风险提示:涉及策略、artifact、自动化、密钥、云资源、券商或交易所行为的变更,必须先用测试环境、dry-run 或只读证据验证;不要只凭示例修改生产。 |
| 9 | +- 英文正文保留更完整的命令、字段名和配置键;如果摘要和正文不一致,以正文中的实际命令和配置为准。 |
| 10 | + |
| 11 | +Thanks for contributing to `ResearchSignalContextPipelines`. |
| 12 | + |
| 13 | +## Ground Rules |
| 14 | + |
| 15 | +- Prefer small pull requests with one clear purpose. |
| 16 | +- Keep refactors separate from behavior, contract, workflow, or documentation changes. |
| 17 | +- Preserve this repository's boundary as a research signal context pipeline; do not move broker execution, live-allocation decisions, private credentials, or unrelated platform logic into it. |
| 18 | +- Add or update tests, examples, docs, or reproducible evidence when changing behavior or public contracts. |
| 19 | + |
| 20 | +## Documentation Standards |
| 21 | + |
| 22 | +- Keep `README.md` as the entry point for project purpose, boundary, repository layout, quick start, and links to deeper docs. |
| 23 | +- Put long-form runbooks, artifact contracts, evidence notes, and architecture details under `docs/` when they outgrow the README. |
| 24 | +- Document inputs, outputs, required permissions, risk controls, and validation commands for workflows or scripts that touch external systems. |
| 25 | +- Keep English and Chinese user-facing docs aligned when a change affects operators, contributors, or downstream platform users. |
| 26 | + |
| 27 | +## Branching and Pull Requests |
| 28 | + |
| 29 | +- Create a topic branch for each change. |
| 30 | +- Open a pull request with a concise summary, scope boundary, and concrete validation notes. |
| 31 | +- Wait for CI to pass before merging. |
| 32 | +- Do not include generated artifacts, private data, credentials, account identifiers, or local environment files unless the repository explicitly documents them as public examples. |
| 33 | + |
| 34 | +## Local Verification |
| 35 | + |
| 36 | +Run the lightweight whitespace check for every change and the repository test command when code, contracts, workflows, or examples change: |
| 37 | + |
| 38 | +```bash |
| 39 | +git diff --check |
| 40 | +python -m pip install -e '.[test]' |
| 41 | +python -m pytest -q |
| 42 | +``` |
| 43 | + |
| 44 | +For documentation-only changes, at minimum review Markdown links, headings, and bilingual consistency before opening the pull request. |
0 commit comments