贡献指南¶
感谢你对 EasyTHS 的关注!
如何贡献¶
- Fork 本仓库
- 创建特性分支 (
git checkout -b feature/AmazingFeature) - 提交更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 提交 Pull Request
代码规范¶
- 使用 Ruff 进行代码检查和格式化(
ruff check/ruff format) - 使用 mypy 进行类型检查
- 安装 pre-commit 钩子,提交前自动执行检查(
uv run pre-commit install) - 单元测试放入
test/unit/(默认随pytest运行);集成测试放入test/integration/(会触发真实交易,仅显式指定路径时运行) - 更新相关文档
报告问题¶
请在 Issues 中报告问题。