docs: 为全部代码补充中文注释并加入 AGENTS 注释规范

This commit is contained in:
cat-shark
2026-08-13 22:09:55 +08:00
parent 906553d2d0
commit 439b63c81b
7 changed files with 150 additions and 0 deletions
+5
View File
@@ -1,19 +1,24 @@
# WOV SDK 项目配置:使用 uv 管理环境与依赖。
[project]
name = "wov-sdk"
version = "0.1.0"
description = "WOV node protocol and SDK"
requires-python = ">=3.11"
# 开发依赖放在 dev 组,由 uv sync 默认安装。
[dependency-groups]
dev = ["pytest", "pytest-cov"]
# pytest 配置:只扫描 tests 目录,并强制 100% 行覆盖率。
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=wov_sdk --cov-report=term-missing --cov-fail-under=100"
# 作为可发布包处理,便于节点仓库通过路径依赖引用。
[tool.uv]
package = true
# 使用 src 布局,源码位于 src/wov_sdk。
[tool.setuptools]
package-dir = {"" = "src"}