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.
This commit is contained in:
Edwin Jose 2025-07-29 10:41:58 -04:00 committed by GitHub
commit 575cb7fb17
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]