-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
99 lines (97 loc) · 1.46 KB
/
Copy pathruff.toml
File metadata and controls
99 lines (97 loc) · 1.46 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Set the maximum line length to 120.
line-length = 120
fix = false
show-fixes = false
output-format = "grouped"
target-version = "py310"
extend-exclude = ["tests", "examples"]
[lint]
# Add the `line-too-long` rule to the enforced rule set. By default, Ruff omits rules that
# overlap with the use of a formatter, like Black, but we can override this behavior by
# explicitly adding the rule.
extend-select = ["E501"]
select = [
"ERA",
"ANN",
"S",
"BLE",
"FBT",
"B",
"A",
"COM",
"C4",
"DTZ",
"T10",
"EM",
"ISC",
"INP",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SLF",
"SIM",
"TID252",
"TID253",
"TC",
"ARG",
"PTH",
"FLY",
"I",
"C90",
"N",
"E",
"W",
"DOC",
"D",
"F",
"PGH",
"UP",
"RUF",
"FURB",
"TRY",
]
fixable = [
"ANN",
"B",
"COM",
"C4",
"EM",
"ISC",
"ICN",
"PIE",
"T20",
"PYI",
"PT",
"Q",
"RSE",
"RET",
"SIM",
"TID252",
"TC",
"PTH",
"FLY",
"I",
"N",
"E",
"W",
"D",
"F",
"PGH",
"UP",
"FURB",
"RUF",
"TRY",
]
extend-ignore = ["D104", "D100", "D107"]
[format]
preview = true
# Whether to format code snippets in docstrings.
# When this is enabled, Python code examples within docstrings are automatically reformatted.
docstring-code-format = false
# Ruff uses existing trailing commas as an indication that short lines should be left separate.
# If this option is set to true, the magic trailing comma is ignored.
skip-magic-trailing-comma = false