forked from mail-in-a-box/mailinabox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
74 lines (66 loc) · 970 Bytes
/
pyproject.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[tool.ruff]
line-length = 320 # https://github.com/astral-sh/ruff/issues/8106
indent-width = 4
target-version = "py310"
preview = true
output-format = "concise"
extend-exclude = ["tools/mail.py"]
## Ruff usage
# ruff --config pyproject.toml check
## Check single rule
# ruff --config pyproject.toml check --diff --select ARG005
## Fix single rule
# ruff --config pyproject.toml check --fix --select ARG005
[tool.ruff.lint]
select = [
"ARG005",
"B007",
"EM102",
"F401",
"F841",
"FURB110",
"FURB118",
"FURB142",
"FURB188",
"G004",
"PERF102",
"PGH004",
"PLR6104",
"PLR6201",
"PLW0120",
"PLW1514",
"Q003",
"RET504",
"RET505",
"RET506",
"RET507",
"RUF005",
"RUF010",
"RUF031",
"RUF039",
"RUF051",
"RUF055",
"SIM101",
"SIM103",
"SIM115",
"SIM117",
"TRY003",
"TRY300",
"UP015",
"UP031",
"UP032",
"W605"
]
ignore = [
"W191",
"PLR09",
"PLR1702",
"PLR2004",
"RUF001",
"RUF002",
"RUF003",
"RUF023"
]
[tool.ruff.format]
quote-style = "preserve"
indent-style = "tab"