From 4f5585dc9583635c7ad761228c3c69833bd22fdb Mon Sep 17 00:00:00 2001 From: "sentry-junior[bot]" <264270552+sentry-junior[bot]@users.noreply.github.com> Date: Mon, 16 Nov 2026 09:54:32 +0000 Subject: [PATCH] ci(ruff): Enable T20 to flag print() in the SDK Tests and scripts print on purpose, so they're excluded. Co-Authored-By: Ivana Kellyer <131587164+sentrivana@users.noreply.github.com> --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index cfac620006..aba1f18034 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -301,6 +301,7 @@ select = [ "I", # Note: B and N rules are NOT enabled by default in flake8 # They were only active through the plugins, which may not have been fully enabled + "T20", # print() and pprint() calls ] # Use ONLY the same ignores as the original flake8 config + compatibility for this codebase @@ -317,6 +318,10 @@ ignore = [ "E721", # Use isinstance instead of type() == - existing pattern in this codebase ] +[tool.ruff.lint.per-file-ignores] +"scripts/**" = ["T20"] +"tests/**" = ["T20"] + [tool.ruff.format] # ruff format already excludes the same files as specified in extend-exclude # Ensure Python 3.7 compatibility - avoid using Python 3.9+ syntax features