Skip to content

Commit b2c114a

Browse files
committed
Move ruff lint config to the lint section.
1 parent 971a6d7 commit b2c114a

File tree

1 file changed

+36
-33
lines changed

1 file changed

+36
-33
lines changed

pyproject.toml

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,38 @@ warn_unreachable = true
105105

106106

107107
[tool.ruff]
108+
# Exclude a variety of commonly ignored directories.
109+
exclude = [
110+
".bzr",
111+
".direnv",
112+
".eggs",
113+
".git",
114+
".hg",
115+
".mypy_cache",
116+
".nox",
117+
".pants.d",
118+
".pytype",
119+
".ruff_cache",
120+
".svn",
121+
".tox",
122+
".venv",
123+
"__pypackages__",
124+
"_build",
125+
"buck-out",
126+
"build",
127+
"dist",
128+
"node_modules",
129+
"venv",
130+
]
131+
132+
# Same as Black.
133+
line-length = 88
134+
135+
136+
# Assume Python 3.10.
137+
target-version = "py310"
138+
139+
[tool.ruff.lint]
108140
select = [
109141
"A",
110142
"ARG",
@@ -134,52 +166,23 @@ select = [
134166
"TID",
135167
"YTT",
136168
]
169+
137170
ignore = ["S105", "S101", "D107", "D105", "PLR0913", "SIM108"]
138171

139172
fixable = ["I"]
140173
unfixable = []
141174

142-
# Exclude a variety of commonly ignored directories.
143-
exclude = [
144-
".bzr",
145-
".direnv",
146-
".eggs",
147-
".git",
148-
".hg",
149-
".mypy_cache",
150-
".nox",
151-
".pants.d",
152-
".pytype",
153-
".ruff_cache",
154-
".svn",
155-
".tox",
156-
".venv",
157-
"__pypackages__",
158-
"_build",
159-
"buck-out",
160-
"build",
161-
"dist",
162-
"node_modules",
163-
"venv",
164-
]
165-
166-
# Same as Black.
167-
line-length = 88
168-
169175
# Allow unused variables when underscore-prefixed.
170176
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
171177

172-
# Assume Python 3.10.
173-
target-version = "py310"
174-
175-
[tool.ruff.isort]
178+
[tool.ruff.lint.isort]
176179
force-single-line = true
177180

178-
[tool.ruff.pydocstyle]
181+
[tool.ruff.lint.pydocstyle]
179182
convention = "google"
180183

181184

182-
[tool.ruff.per-file-ignores]
185+
[tool.ruff.lint.per-file-ignores]
183186
"jsonpath/__about__.py" = ["D100"]
184187
"jsonpath/__init__.py" = ["D104"]
185188
"tests/*" = ["D100", "D101", "D104", "D103"]

0 commit comments

Comments
 (0)