Skip to content

Commit

Permalink
Update pyproject.toml for ruff 0.2.0's breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
silasary committed Jun 28, 2024
1 parent f44b038 commit 6311ebe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion interactions/api/gateway/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ async def dispatch_event(self, data, seq, event) -> None:
return None

case "GUILD_MEMBERS_CHUNK":
_ = asyncio.create_task(self._process_member_chunk(data.copy()))
_ = asyncio.create_task(self._process_member_chunk(data.copy())) # noqa: RUF006

case _:
# the above events are "special", and are handled by the gateway itself, the rest can be dispatched
Expand Down
12 changes: 7 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,11 @@ log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.ruff]
line-length = 120
target-version = "py310"
output-format = "concise" # set to full if you want to see the source of the error/warning

[tool.ruff.lint]
ignore-init-module-imports = true
task-tags = ["TODO", "FIXME", "XXX", "HACK", "REVIEW", "NOTE"]
show-source = false # set to true if you want to see the source of the error/warning
select = ["E", "F", "B", "Q", "RUF", "D", "ANN", "RET", "C"]
ignore = [
"Q0",
Expand Down Expand Up @@ -175,16 +177,16 @@ ignore = [
# unecessary variable assignement before return statement.
]

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"

[tool.ruff.flake8-annotations]
[tool.ruff.lint.flake8-annotations]
mypy-init-return = true
suppress-dummy-args = true
suppress-none-returning = true

[tool.ruff.flake8-errmsg]
[tool.ruff.lint.flake8-errmsg]
max-string-length = 20

[tool.ruff.mccabe]
[tool.ruff.lint.mccabe]
max-complexity = 13

0 comments on commit 6311ebe

Please sign in to comment.