-
Notifications
You must be signed in to change notification settings - Fork 502
/
ruff.toml
74 lines (70 loc) · 643 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
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
exclude = ["docs"]
line-length = 120
[lint.mccabe]
max-complexity = 9
[lint]
select = [
"A",
"B",
"BLE",
"C4",
"COM",
"C90",
"DTZ",
"E",
"F",
"ICN",
"N",
"PL",
"PTH",
"RUF",
"S",
"SLOT",
"T20",
"TRY",
"W",
"YTT",
]
ignore = [
"A002",
"B007",
"B009",
"B026",
"B028",
"B904",
"N804",
"N818",
"PLR0913",
"PLR2004",
"PTH123",
"RUF100",
"TRY003",
"TRY300",
]
[lint.per-file-ignores]
"tests/**" = [
"B015",
"B018",
"BLE001",
"C901",
"S101",
"S105",
"S310",
"PLR0911",
"PLW0603",
"PTH100",
"PTH113",
"PTH118",
"PTH120",
"T201",
"TRY002",
]
"samples/**" = [
"S101",
"S106",
"PTH100",
"PTH118",
"PTH120",
]
[lint.pydocstyle]
convention = "google"