py-topdir.mk: Add test tree to default check roots
Some checks failed
CI / Packaging - Kali Linux (pull_request) Failing after 2m31s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Failing after 2m25s
CI / Packaging test (pull_request) Failing after 0s

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 <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v0.85.1
This commit is contained in:
Jan Lindemann 2026-09-11 14:38:51 +02:00
commit c58ddda3b1
Signed by: Jan Lindemann
GPG key ID: 3750640C9E25DD61

View file

@ -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: