forked from bentoml/OpenLLM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ruff.toml
44 lines (42 loc) · 797 Bytes
/
.ruff.toml
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
exclude = ["tools", "examples", "openllm-python/src/openllm_cli/playground/"]
extend-include = ["*.ipynb"]
preview = true
select = [
"F",
"G", # flake8-logging-format
"PERF", # perflint
"RUF", # Ruff-specific rules
"W6",
"E71",
"E72",
"E112",
"E113",
# "E124",
"E203",
"E272",
# "E303",
# "E304",
# "E501",
# "E502",
"E702",
"E703",
"E731",
"W191",
"W291",
"W293",
"UP039", # unnecessary-class-parentheses
]
ignore = ["RUF012"]
line-length = 150
indent-width = 2
typing-modules = [
"openllm_core._typing_compat",
"openllm_client._typing_compat",
]
[format]
preview = true
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = true
[lint.pydocstyle]
convention = "google"