-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.ruff.toml
More file actions
46 lines (39 loc) · 851 Bytes
/
.ruff.toml
File metadata and controls
46 lines (39 loc) · 851 Bytes
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
line-length = 79
target-version="py310"
src = ["src"]
include = ["src/**.py", "tests/**.py"]
exclude = ["src/dishka/_adaptix/**"]
lint.select = [
"ALL"
]
lint.ignore = [
"ARG",
"ANN",
"D",
"EM101",
"EM102",
"PT001",
"PT023",
"SIM108",
"RET505",
"PLR0913",
"SIM103",
"ISC003",
"PGH005", # false positive on requests_mock
"PERF401", # incorrect perf suggestion
"PLW1641", # invalid assumption
# identical by code != identical by meaning
"SIM114",
# awful things, never use.
# It makes runtime work differently from typechecker
"TC001",
"TC002",
"TC003",
"TC006",
]
[lint.per-file-ignores]
"tests/**" = ["TID252", "PLR2004", "S101", "A002"]
[lint.isort]
no-lines-before = ["local-folder"]
[lint.flake8-tidy-imports]
ban-relative-imports = "parents"