-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.ruff.toml
More file actions
73 lines (67 loc) · 1.13 KB
/
.ruff.toml
File metadata and controls
73 lines (67 loc) · 1.13 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
src = [
"app",
"packages/smbmonitor/src",
]
exclude = [
".venv",
"tests"
]
[lint]
select = [
# use "ruff linter" to list all available linters
"E",
"W",
"F",
"I",
"C",
"B",
"PL",
"PT",
"UP",
"RUF",
"N",
"ASYNC",
"C4",
"EM",
"FA",
"ISC",
"ICN",
"RSE",
"SLF",
"SLOT",
"SIM",
"TID",
"TCH",
"PERF",
]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"PLR0913", # too many arguments
"PLR0912", # too many branches
"EM101", # exception must not use a string literal, assign to variable first
"EM102", # exception must not use an f-string literal, assign to variable first
"PLR0915", # too many statements,
"UP006",
"UP035",
"RUF023",
]
[lint.per-file-ignores]
"__init__.py" = [
"F401",
]
"tests/*" = [
"PLR2004",
"PT011",
"SLF001",
]
[format]
exclude = [
]
[lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
[lint.flake8-pytest-style]
mark-parentheses = true