From ad7286ddc8b8e9d74e974f213822d5a69efe7964 Mon Sep 17 00:00:00 2001 From: Sven Geboers Date: Thu, 30 Apr 2026 23:51:37 +0200 Subject: [PATCH] chore: add ruff T20 lint rule to prevent prints in core modules - Enable T20 (flake8-print) for all Python files - Exclude scripts/, tools/, and .mindmodel/examples/ where stdout output is acceptable Completes U6 of P2-001 (replace print with logging) --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a13178f..bebd2c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,3 +26,12 @@ dev = [ "pytest>=9.0.2", "pyright>=1.1.408", ] + +[tool.ruff.lint] +select = ["T20"] +ignore = [] + +[tool.ruff.lint.per-file-ignores] +"scripts/*" = ["T20"] +"tools/*" = ["T20"] +".mindmodel/examples/*" = ["T20"]