-
Notifications
You must be signed in to change notification settings - Fork 3
/
ruff.toml
67 lines (62 loc) · 1.01 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
line-length = 100
target-version = "py310"
[lint]
ignore = [
"E501",
"ANN401",
"ANN101",
"ANN102",
"ANN003",
"PLR0913",
"PLR2004",
"PLR0917",
"PLR6301",
"ANN002",
"PLC0414",
]
preview = true
select = [
"E",
"W",
"C90",
"F",
"UP",
"B",
"SIM",
"I",
"N",
"TCH",
"ANN",
"ASYNC",
"A",
"C4",
"EM",
"FA",
"ICN",
"G",
"PIE",
"T20",
"ARG",
"ERA",
"LOG",
"PL",
"TRY",
"RUF022",
]
[lint.per-file-ignores]
"**/__init__.py" = ["F403"]
"enka/hsr.py" = ["F403"]
"enka/gi.py" = ["F403"]
"**/client.py" = ["PLR0904", "A002"]
"**/models/*.py" = ["N805", "TCH"]
"**/tests/*.py" = ["ANN001"]
"examples/*.py" = ["T201"]
"playground.*.py" = ["ALL"]
[lint.isort]
required-imports = ["from __future__ import annotations"]
split-on-trailing-comma = false
[lint.flake8-type-checking]
quote-annotations = true
runtime-evaluated-base-classes = ["pydantic.BaseModel"]
[format]
skip-magic-trailing-comma = true