From c58ddda3b10ef7d33f4cfac44a9125579170f397 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 11 Sep 2026 14:38:51 +0200 Subject: [PATCH] py-topdir.mk: Add test tree to default check roots PY_CHECK_ROOTS defaults to the src and tools directories, so the ruff, mypy, pyright, and yapf checks and the bad-pattern scan silently skip test trees. Python tests below test/ therefore escape linting, type checking, and formatting enforcement, even though py-check.mk itself defaults to the whole directory when no roots are given at all. Add $(TOPDIR)/test to the default PY_CHECK_ROOTS so that the test tree receives the same checks and formatting as src and tools. The previous commit prepared this repo's unit tests for the strict type check and the formatter, so the extended roots pass cleanly here. Signed-off-by: Jan Lindemann Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1 --- make/py-topdir.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/py-topdir.mk b/make/py-topdir.mk index c6b0f3ac..faeb20ec 100644 --- a/make/py-topdir.mk +++ b/make/py-topdir.mk @@ -8,7 +8,7 @@ MYPY_CONFIG_PATH = $(shell $(JW_PKG_PY) --topdir-format relative pro MYPY_PATH_DIRECTIVE = mypy_path = "$(MYPY_CONFIG_PATH)" ifndef PY_CHECK_ROOTS - PY_CHECK_ROOTS = $(wildcard $(TOPDIR)/src $(TOPDIR)/tools) + PY_CHECK_ROOTS = $(wildcard $(TOPDIR)/src $(TOPDIR)/tools $(TOPDIR)/test) endif all: