-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
80 lines (74 loc) · 1.37 KB
/
ruff.toml
File metadata and controls
80 lines (74 loc) · 1.37 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
target-version = "py313"
line-length = 88
[lint]
select = [
"F",
"E",
"W",
"I",
"N",
"UP",
"B",
"A",
"SIM",
"TCH",
"RUF",
"FAST",
"ASYNC",
"S",
"PT",
"C4",
"PERF",
"T20",
"ERA",
"DTZ",
"T10",
"BLE",
"FBT",
"PIE",
"RET",
"FLY",
"FURB",
"TRY",
"PL",
"C90",
"PGH",
"RSE",
"ISC",
"LOG",
"ARG",
"FA",
"TID",
"PTH",
"EM",
"INP",
"ICN",
"Q",
"COM",
"ANN",
"SLF",
"G",
]
ignore = [
"E501",
"TRY003",
"PLW0603",
"COM812",
"ANN401",
]
[lint.per-file-ignores]
"tests/**" = ["S101", "ARG001", "PLC0415", "PLR2004", "SLF001", "ANN"]
"alembic/**" = ["ERA001", "ANN", "INP"]
[lint.flake8-tidy-imports]
ban-relative-imports = "all"
[lint.flake8-tidy-imports.banned-api]
"__future__.annotations".msg = "Python 3.13+ does not need `from __future__ import annotations`."
"builtins.getattr".msg = "Do not use getattr(). Use direct attribute access or try/except AttributeError."
"builtins.setattr".msg = "Do not use setattr(). Use direct attribute assignment."
"builtins.hasattr".msg = "Do not use hasattr(). Use direct attribute access or try/except AttributeError."
[lint.flake8-quotes]
inline-quotes = "double"
multiline-quotes = "double"
docstring-quotes = "double"
[lint.isort]
known-first-party = ["app"]