Skip to content

Commit 4e1c09f

Browse files
committed
Update pyproject.toml for ruff 0.2.0's breaking changes
1 parent ddab308 commit 4e1c09f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: interactions/api/gateway/gateway.py

+1-1
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

Diff for: pyproject.toml

+7-5
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,11 @@ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
113113
[tool.ruff]
114114
line-length = 120
115115
target-version = "py310"
116+
output-format = "concise" # set to full if you want to see the source of the error/warning
117+
118+
[tool.ruff.lint]
116119
ignore-init-module-imports = true
117120
task-tags = ["TODO", "FIXME", "XXX", "HACK", "REVIEW", "NOTE"]
118-
show-source = false # set to true if you want to see the source of the error/warning
119121
select = ["E", "F", "B", "Q", "RUF", "D", "ANN", "RET", "C"]
120122
ignore = [
121123
"Q0",
@@ -177,16 +179,16 @@ ignore = [
177179
# unecessary variable assignement before return statement.
178180
]
179181

180-
[tool.ruff.flake8-quotes]
182+
[tool.ruff.lint.flake8-quotes]
181183
docstring-quotes = "double"
182184

183-
[tool.ruff.flake8-annotations]
185+
[tool.ruff.lint.flake8-annotations]
184186
mypy-init-return = true
185187
suppress-dummy-args = true
186188
suppress-none-returning = true
187189

188-
[tool.ruff.flake8-errmsg]
190+
[tool.ruff.lint.flake8-errmsg]
189191
max-string-length = 20
190192

191-
[tool.ruff.mccabe]
193+
[tool.ruff.lint.mccabe]
192194
max-complexity = 13

0 commit comments

Comments
 (0)