docs: 为全部代码补充中文注释并加入 AGENTS 注释规范
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
# WOV faster-whisper 节点配置:使用 uv 管理环境与依赖。
|
||||
[project]
|
||||
name = "wov-node-whisper"
|
||||
version = "0.1.0"
|
||||
description = "WOV faster-whisper ASR node"
|
||||
requires-python = ">=3.11"
|
||||
# 显式加入 NVIDIA 动态库包,保证 GPU 场景下 cublas/cudnn 可被加载。
|
||||
dependencies = [
|
||||
"faster-whisper>=1.2.1",
|
||||
"nvidia-cublas-cu12>=12.9.2.10",
|
||||
@@ -10,16 +12,20 @@ dependencies = [
|
||||
"wov-sdk",
|
||||
]
|
||||
|
||||
# 本地路径依赖 wov-sdk。
|
||||
[tool.uv.sources]
|
||||
wov-sdk = { path = "../wov-sdk" }
|
||||
|
||||
# 开发依赖:pytest 与覆盖率工具。
|
||||
[dependency-groups]
|
||||
dev = ["pytest", "pytest-cov"]
|
||||
|
||||
# pytest 配置:强制 100% 行覆盖率。
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
pythonpath = ["."]
|
||||
addopts = "--cov=wov_node_whisper --cov-report=term-missing --cov-fail-under=100"
|
||||
|
||||
# 仅打包节点包本身。
|
||||
[tool.setuptools]
|
||||
packages = ["wov_node_whisper"]
|
||||
|
||||
Reference in New Issue
Block a user