Skip to content

Commit 6311ebe

Browse files
committed
Update pyproject.toml for ruff 0.2.0's breaking changes
1 parent f44b038 commit 6311ebe

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

interactions/api/gateway/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ async def dispatch_event(self, data, seq, event) -> None:
223223
return None
224224

225225
case "GUILD_MEMBERS_CHUNK":
226-
_ = asyncio.create_task(self._process_member_chunk(data.copy()))
226+
_ = asyncio.create_task(self._process_member_chunk(data.copy())) # noqa: RUF006
227227

228228
case _:
229229
# the above events are "special", and are handled by the gateway itself, the rest can be dispatched

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
111111
[tool.ruff]
112112
line-length = 120
113113
target-version = "py310"
114+
output-format = "concise" # set to full if you want to see the source of the error/warning
115+
116+
[tool.ruff.lint]
114117
ignore-init-module-imports = true
115118
task-tags = ["TODO", "FIXME", "XXX", "HACK", "REVIEW", "NOTE"]
116-
show-source = false # set to true if you want to see the source of the error/warning
117119
select = ["E", "F", "B", "Q", "RUF", "D", "ANN", "RET", "C"]
118120
ignore = [
119121
"Q0",
@@ -175,16 +177,16 @@ ignore = [
175177
# unecessary variable assignement before return statement.
176178
]
177179

178-
[tool.ruff.flake8-quotes]
180+
[tool.ruff.lint.flake8-quotes]
179181
docstring-quotes = "double"
180182

181-
[tool.ruff.flake8-annotations]
183+
[tool.ruff.lint.flake8-annotations]
182184
mypy-init-return = true
183185
suppress-dummy-args = true
184186
suppress-none-returning = true
185187

186-
[tool.ruff.flake8-errmsg]
188+
[tool.ruff.lint.flake8-errmsg]
187189
max-string-length = 20
188190

189-
[tool.ruff.mccabe]
191+
[tool.ruff.lint.mccabe]
190192
max-complexity = 13

0 commit comments

Comments
 (0)