forked from speaches-ai/speaches
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
61 lines (56 loc) · 1.39 KB
/
ruff.toml
File metadata and controls
61 lines (56 loc) · 1.39 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
60
61
# https://docs.astral.sh/ruff/configuration/
line-length = 120
target-version = "py312"
[lint]
select = ["ALL"]
ignore = [
"FIX",
"TD", # disable todo warnings
"ERA", # allow commented out code
"ANN002", # missing args type annotation
"ANN003", # missing kwargs type annotation
"ANN401", # allow any
"B006",
"B008",
"COM812", # trailing comma
"C90", # https://docs.astral.sh/ruff/rules/#mccabe-c90
"D", # disable docstring warnings
"EM101",
"EM102",
"FBT001",
"FBT002",
"PLR09",
"PLR2004", # magic
"RET504",
"RET505",
"RET508",
"S101", # allow assert
"S104",
"S603", # subprocess untrusted input
"SIM102",
"T201", # print
"TRY003",
"TRY300",
"TRY301",
"W505",
"ISC001", # recommended to disable for formatting
"INP001",
"PT018",
"G004", # logging f string
"E501", # line-too-long
"PLC0415"
]
[lint.isort]
force-sort-within-sections = true
# https://docs.astral.sh/ruff/settings/#per-file-ignores
[lint.per-file-ignores]
"src/speaches/types/**.py" = ["PYI051"]
[format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"