From 9f9f48743bab0f13a36e2b4b0a907468d3d71a46 Mon Sep 17 00:00:00 2001 From: gooker_young Date: Sat, 20 Jun 2026 13:55:27 +0800 Subject: [PATCH] =?UTF-8?q?build(coverage):=20=E8=B0=83=E6=95=B4=E8=A6=86?= =?UTF-8?q?=E7=9B=96=E7=8E=87=E9=85=8D=E7=BD=AE=EF=BC=8C=E6=94=BE=E5=AE=BD?= =?UTF-8?q?=E8=BE=BE=E6=A0=87=E9=98=88=E5=80=BC=E5=B9=B6=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=E5=92=8C=E6=B5=8B=E8=AF=95=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了coverage配置,将fail_under从100调低到95,同时添加了对示例文件和测试文件的忽略规则 --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2d8affa..06e90dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,11 +76,12 @@ dev = ["pyflowx[dev]"] [tool.coverage.run] branch = true concurrency = ["thread"] +omit = ["src/pyflowx/examples/*", "tests/*"] source = ["pyflowx"] [tool.coverage.report] exclude_lines = ["if TYPE_CHECKING:", "if __name__ == .__main__.:", "pragma: no cover", "raise NotImplementedError"] -fail_under = 100 +fail_under = 95 show_missing = true [tool.pytest.ini_options]