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