-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
98 lines (86 loc) · 1.57 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Same as Black
line-length = 90
# Always generate Python 3.10-compatible code
target-version = "py310"
# Files to lint
include = ["*.py"]
# Directories to ignore
exclude = ["flatpak"]
# Allow imports relative to the "src" directory
src = ["src"]
# Automatically fix basic problems
fix = true
[lint]
ignore-init-module-imports = true
select = [
"E",
"F",
"B",
"PL",
"W",
"I",
"N",
"UP",
"N",
"D",
"C90",
"A",
"COM",
"C4",
"DTZ",
"BLE",
"ASYNC",
"S",
"FBT",
"T10",
"EM",
"EXE",
"ISC",
"ICN",
"G",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SIM",
"TID",
"TCH",
"INT",
"ARG",
"ERA",
"PD",
"PGH",
"PLE",
"PLR",
"PLW",
"TRY",
"FLY",
"NPY",
"RUF",
]
ignore = [
"PLE1205",
"G004", # Logging statement uses f-string
"W191", # Incompatibility with format.indent-style="tab"
"D206", # Incompatibility with format.indent-style="tab"
"COM812", # Trailing comma
"D417", # description in docstrings
"E402", # Allow module-level imports to not necessarily be at top of file
"E101", # Allow mixed indentation
"FBT001", # Allow boolean-type positional arguments
"FBT002", # Alow boolean-type positional argument in function definition
"FBT003" # Allow boolean positional value in function call
]
[lint.per-file-ignores]
"__init__.py" = ["F403", "D104"]
[lint.pydocstyle]
convention = "google"
[lint.isort]
case-sensitive = true
[format]
indent-style = "tab"