-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
62 lines (60 loc) · 1.68 KB
/
ruff.toml
File metadata and controls
62 lines (60 loc) · 1.68 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
62
line-length = 120
target-version = "py313"
[lint]
select = [
"E",
"F",
"FAST",
"YTT",
"ANN",
"ASYNC",
"S",
"B",
"A",
"COM",
"C4",
"EXE",
"INT",
"ISC",
"ICN",
"LOG",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SIM",
"TID",
"TC",
"FLY",
"I",
"PERF",
"W",
"UP",
"FURB",
"RUF"
]
ignore = [
"E741", # https://docs.astral.sh/ruff/rules/ambiguous-variable-name/
"E501", # https://docs.astral.sh/ruff/rules/line-too-long/
"FAST003", # https://docs.astral.sh/ruff/rules/fast-api-unused-path-parameter/
"ANN401", # https://docs.astral.sh/ruff/rules/any-type/
"S101", # https://docs.astral.sh/ruff/rules/assert/
"S110", # https://docs.astral.sh/ruff/rules/try-except-pass/
"S311", # https://docs.astral.sh/ruff/rules/suspicious-non-cryptographic-random-usage/
"B904", # https://docs.astral.sh/ruff/rules/raise-without-from-inside-except/
"PT012", # https://docs.astral.sh/ruff/rules/pytest-raises-with-multiple-statements/
"PT011", # https://docs.astral.sh/ruff/rules/pytest-raises-too-broad/
"SIM115", # https://docs.astral.sh/ruff/rules/open-file-with-context-handler/
"RUF001", # https://docs.astral.sh/ruff/rules/ambiguous-unicode-character-string/
"RUF002", # https://docs.astral.sh/ruff/rules/ambiguous-unicode-character-docstring/
"RUF003", # https://docs.astral.sh/ruff/rules/ambiguous-unicode-character-comment/
"RUF018", # https://docs.astral.sh/ruff/rules/assignment-in-assert/
"RUF012", # https://docs.astral.sh/ruff/rules/mutable-class-default/
]
[lint.flake8-annotations]
mypy-init-return = true