From 575cb7fb174258e9c7b3af26f63648e28da030fc Mon Sep 17 00:00:00 2001 From: Edwin Jose Date: Tue, 29 Jul 2025 10:41:58 -0400 Subject: [PATCH] ref: Update Ruff per-file ignores for tests and scripts (#9206) Update Ruff per-file ignores for tests and scripts Added BLE001 to the per-file ignores for test files to allow broad-exception catching. Reformatted the scripts ignore list for consistency. --- pyproject.toml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bdfb17000..c8f6e17e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -305,16 +305,13 @@ ignore = [ external = ["RUF027"] [tool.ruff.lint.per-file-ignores] -"scripts/*" = [ - "D1", - "INP", - "T201", -] +"scripts/*" = ["D1", "INP", "T201"] "src/backend/tests/*" = [ "D1", "PLR2004", "S101", "SLF001", + "BLE001", # allow broad-exception catching in tests ] [tool.ruff.lint.flake8-builtins]