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:
parent
575cde3e8d
commit
575cb7fb17
1 changed files with 2 additions and 5 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue