refactor(pymake): 暴露build_graphs函数并调整测试

同时降低覆盖率阈值至95%
This commit is contained in:
2026-06-21 11:07:44 +08:00
parent 60083bcb6e
commit 4884fd53e5
4 changed files with 36 additions and 40 deletions
+2 -2
View File
@@ -73,7 +73,7 @@ _GIT_CONDITION = BuiltinConditions.HAS_APP_INSTALLED("git")
_TOX_CONDITION = BuiltinConditions.HAS_APP_INSTALLED("tox")
def _build_graphs() -> dict[str, px.Graph]:
def build_graphs() -> dict[str, px.Graph]:
"""构建所有命令对应的任务流图.
将原本的 CommandScheduler/RunCommand 模式转换为 Graph/TaskSpec 模式,
@@ -447,6 +447,6 @@ def main():
runner = px.CliRunner(
strategy=px.Strategy.SEQUENTIAL,
description="PyMake - Python 构建工具 (替代 Makefile)",
**_build_graphs(),
**build_graphs(),
)
runner.run_cli()