-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathruff.toml
63 lines (58 loc) · 847 Bytes
/
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
extend-include = ["*.ipynb"]
preview = true
line-length = 120
indent-width = 4
[format]
preview = true
quote-style = "single"
indent-style = "space"
skip-magic-trailing-comma = false
docstring-code-format = true
[lint]
ignore = [
"RUF012",
"ANN", # Mypy is better at this
"E722",
"RUF001",
"Q000",
"RET504",
]
select = [
"E",
"D",
"F",
"G", # flake8-logging-format
"T",
"PERF", # perflint
"RUF", # Ruff-specific rules
"W6",
"SIM",
"COM",
"C4",
"W191",
"W291",
"W293",
"UP039", # unnecessary-class-parentheses
"DTZ",
"ISC",
"ICN",
"PIE",
"T20",
"RSE",
"Q",
"RET",
"TID",
"TC",
"INT",
"ARG",
"ERA",
"PD",
"R",
"FLY",
"W",
"NPY"
]
[lint.pydocstyle]
convention = "google"
[lint.per-file-ignores]
"__init__.py" = ["D104"] # ignore no docstrings in __init__.py