parent
140cf890e3
commit
f96f2eaf8a
67 changed files with 421 additions and 361 deletions
|
|
@ -216,6 +216,43 @@ directory = "coverage"
|
|||
exclude = ["src/backend/langflow/alembic/*"]
|
||||
line-length = 120
|
||||
|
||||
[tool.ruff.lint]
|
||||
pydocstyle.convention = "google"
|
||||
select = ["ALL"]
|
||||
ignore = [
|
||||
"C90", # McCabe complexity
|
||||
"CPY", # Missing copyright
|
||||
"COM812", # Messes with the formatter
|
||||
"ERA", # Eradicate commented-out code
|
||||
"FIX002", # Line contains TODO
|
||||
"ISC001", # Messes with the formatter
|
||||
"PERF203", # Rarely useful
|
||||
"PLR09", # Too many something (arg, statements, etc)
|
||||
"RUF012", # Pydantic models are currently not well detected. See https://github.com/astral-sh/ruff/issues/13630
|
||||
"TD002", # Missing author in TODO
|
||||
"TD003", # Missing issue link in TODO
|
||||
"TRY301", # A bit too harsh (Abstract `raise` to an inner function)
|
||||
|
||||
# Rules that are TODOs
|
||||
"ANN",
|
||||
]
|
||||
|
||||
# Preview rules that are not yet activated
|
||||
external = ["RUF027"]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"scripts/*" = [
|
||||
"D1",
|
||||
"INP",
|
||||
"T201",
|
||||
]
|
||||
"src/backend/tests/*" = [
|
||||
"D1",
|
||||
"PLR2004",
|
||||
"S101",
|
||||
"SLF001",
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
plugins = ["pydantic.mypy"]
|
||||
follow_imports = "skip"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue