-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathruff.toml
74 lines (67 loc) · 1.09 KB
/
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
line-length = 100
target-version = "py312"
[lint]
ignore = [
"E501",
"ANN401",
"PLR0913",
"PLR2004",
"PLR0917",
"PLR6301",
"ANN002",
"TRY301",
"TRY002",
"ERA001",
"RUF006",
"D",
"CPY",
"DOC",
"TID",
"INP",
"S101",
"SLF001",
"FBT",
"COM812",
"ISC001",
"S311",
"BLE001",
"PLR0912",
"PLR0915",
"C901",
"PLR0911",
"PLR0916",
"PLR0904",
"PLR0914",
"PLR0904",
"FIX",
"TD",
"S105",
"S301",
"RUF012",
"S403",
"UP040",
"E741",
"RET503",
"UP046",
]
preview = true
select = ["ALL"]
[lint.per-file-ignores]
"**/__init__.py" = ["F403", "F401"]
"./migrations/*.py" = ["ALL"]
"hoyo_buddy/draw/**/*.py" = ["PLR", "C"]
"hoyo_buddy/draw/drawer.py" = ["F405"]
"hoyo_buddy/models.py" = ["TC002"]
"playground.*.py" = ["ALL"]
[lint.flake8-type-checking]
quote-annotations = true
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[lint.mccabe]
max-complexity = 15
[lint.pydocstyle]
convention = "google"
[lint.isort]
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false
[format]
skip-magic-trailing-comma = true