From 6e1dd193342a64b88b561529726ca8bd24dead81 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 04:24:45 +0000 Subject: [PATCH] chore(lint): enable T20 rule (no print() in library code) Add T20 (flake8-print) to the select list. print() calls in library code bypass log levels and pollute stdout. T201 remains in the unfixable list to prevent silent removal of print statements. Existing violations need compliance fixes (noqa directives). Co-Authored-By: AJ Steers --- .ruff.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruff.toml b/.ruff.toml index f0b61926a..f290c5f80 100644 --- a/.ruff.toml +++ b/.ruff.toml @@ -51,7 +51,7 @@ select = [ "SLF", # flake8-self "SLOT", # flake8-slots "T10", # debugger calls - # "T20", # flake8-print # TODO: Re-enable once we have logging + "T20", # flake8-print (no print() in library code) "TCH", # flake8-type-checking "TD", # flake8-todos "TID", # flake8-tidy-imports