-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathruff.toml
More file actions
79 lines (73 loc) · 1.13 KB
/
Copy pathruff.toml
File metadata and controls
79 lines (73 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
74
75
76
77
78
79
indent-width = 4
line-length = 120
target-version = "py310"
exclude = [
"__pycache__",
"__pypackages__",
"venv",
".venv",
".pyenv",
".eggs",
".git",
".svn",
".mypy_cache",
".pytest_cache",
".ruff_cache",
"build",
"dist",
"migrations",
"node_modules",
"site-packages",
".pytype",
".tox",
".vscode",
]
[lint]
select = [
"A",
"B",
"C4",
"C90",
"E",
"F",
"FURB",
"I",
"N",
"PERF",
"RUF",
"S",
"UP",
"W",
]
ignore = [
"B008",
"D",
"E402",
"E501",
"E731",
"Q",
"RUF001",
"RUF002",
"RUF003",
"RUF029",
"S101",
"S311",
"S403",
"S404",
"S602",
"S603",
"S607",
"S608",
]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[format]
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "lf"
docstring-code-format = true
docstring-code-line-length = "dynamic"