mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 23:13:58 +08:00
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:
@ -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]
|
||||
|
||||
Reference in New Issue
Block a user