-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
executable file
·159 lines (149 loc) · 2.34 KB
/
Copy pathruff.toml
File metadata and controls
executable file
·159 lines (149 loc) · 2.34 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
extend-include = ["*.ipynb"]
fix = true
line-length = 100
indent-width = 4
target-version = "py313"
[format]
docstring-code-format = true
docstring-code-line-length = 80
line-ending = "auto"
indent-style = "space"
skip-magic-trailing-comma = true
exclude = [
"**/_vendor",
"setuptools/_distutils",
"setuptools/config/_validate_pyproject",
".venv",
".git",
".github",
".vscode",
".idea",
"dist",
"build",
"site",
"bin",
"lib",
"include",
"docs",
]
# Enable preview, required for quote-style = "preserve"
preview = true
# https://docs.astral.sh/ruff/settings/#format-quote-style
quote-style = "double"
[lint]
fixable = ["ALL"]
# Almost all rules; but not all https://docs.astral.sh/ruff/rules/
select = [
"A",
"ASYNC",
"B",
"C",
"D",
"E",
"F",
"FLY",
"FURB",
"G",
"I",
"ICN",
"INT",
"N",
"LOG",
"PD",
"PERF",
"PIE",
"PT",
"PTH",
"PYI",
"Q",
"RSE",
"RET",
"S",
"SLF",
"SLOT",
"SIM",
"TRY",
"RUF",
"UP",
"YTT",
"W",
]
extend-select = [
"A003",
"ANN201",
"ANN002",
"COM818",
"C901",
"DTZ005",
"DTZ007",
"FBT001",
"ISC003",
"TID252",
"TID253",
]
ignore = [
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191",
"E402",
"E111",
"E114",
"E117",
"D200",
"D205",
"D206",
"D300",
"D417",
"E501",
"Q000",
"Q001",
"Q002",
"Q003",
"COM812",
"COM819",
"ISC001",
"ISC002",
"D212",
"TRY003",
"UP015" # redundant-open-modes, explicit is preferred
]
exclude = [
"**/_vendor",
"setuptools/_distutils",
"setuptools/config/_validate_pyproject",
]
[lint.pydocstyle]
convention = "google"
[lint.isort]
force-single-line = false
force-wrap-aliases = false
lines-after-imports = 2
lines-between-types = 1
split-on-trailing-comma = false