From 9ba6c70deede1658f305395e41e14c5c87f32a1e Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 5 Jun 2026 14:19:23 +0200 Subject: [PATCH] py-topdir.mk: Add --config pyproject.toml ruff tries to recursivley use every config file it finds and stumbles over a template: /usr/bin/ruff check --select TC,FA --fix --unsafe-fixes . ruff failed Cause: Failed to parse /home/jan/local/src/jw.dev/proj/jw-pkg/conf/templates/pyproject.toml Cause: TOML parse error at line 3, column 3 | 3 | {mypypath} | ^ invalid key-value pair, expected key Limiting it to the toplevel pyproject.toml by explicitly specifying --config fixes the behaviour, so that's what this commit does. Signed-off-by: Jan Lindemann --- make/py-topdir.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/make/py-topdir.mk b/make/py-topdir.mk index 471ee8b4..8cadbb07 100644 --- a/make/py-topdir.mk +++ b/make/py-topdir.mk @@ -7,6 +7,9 @@ endif ifndef PY_CHECK_RUFF PY_CHECK_RUFF := $(shell which ruff 2>/dev/null) + ifneq ($(PY_CHECK_RUFF),) + PY_CHECK_RUFF += --config pyproject.toml + endif endif ifndef PY_CHECK_YAPF