-
Notifications
You must be signed in to change notification settings - Fork 691
Expand file tree
/
Copy pathruff.toml
More file actions
59 lines (53 loc) · 1.47 KB
/
ruff.toml
File metadata and controls
59 lines (53 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
target-version = "py310"
line-length = 120
extend-exclude = [
"NLWebScorer",
"ModelRouter",
"AgentFinder",
"DataFinder",
"openai-apps-sdk-integration",
"data",
"static",
"demo",
]
[lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific
]
ignore = [
"E501", # line too long — handled by formatter
"E402", # module-level import not at top — deferred imports are intentional
"B008", # function call in default arg — common in aiohttp patterns
"SIM108", # ternary operator — can reduce readability
"RUF006", # asyncio dangling task — fire-and-forget is intentional pattern
"RUF012", # mutable class variable — too many false positives in config classes
"UP007", # Use X | Y for unions — keep Optional for 3.10 compat
"UP035", # deprecated-import — typing.List etc still needed for 3.9 compat
]
[lint.per-file-ignores]
"AskAgent/python/tests/**/*.py" = ["F401", "F811"]
"AskAgent/python/testing/**/*.py" = ["F401", "F811"]
"*.ipynb" = ["E722"]
[lint.isort]
known-first-party = [
"core",
"methods",
"webserver",
"retrieval_providers",
"llm_providers",
"embedding_providers",
"storage_providers",
"data_loading",
"misc",
"tools",
]
[format]
quote-style = "double"
indent-style = "space"