Skip to content

Commit

Permalink
Ruff rule updates
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Jul 2, 2024
1 parent e590113 commit f862922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ select = [
"SIM", # flake8-simplify
"SLOT", # flake8-slots
"TCH", # flake8-type-checking
"TRIO", # flake8-trio
"UP", # pyupgrade
"W", # Warning
"YTT", # flake8-2020
Expand All @@ -123,7 +122,7 @@ extend-ignore = [
"D204", # blank line thing
"D211", # no-blank-line-before-class
"D213", # multi-line-summary-second-line
"TRIO109", # trio-async-function-with-timeout
"ASYNC109", # trio-async-function-with-timeout
]

[tool.ruff.lint.per-file-ignores]
Expand Down
4 changes: 2 additions & 2 deletions src/statusbot/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ async def update_file(
url = get_address(user, repo, branch, path)
savepath = os.path.abspath(os.path.join(basepath, *(path.split("/"))))
try:
with open(savepath, "wb") as sfile:
with open(savepath, "wb") as sfile: # noqa: ASYNC230
sfile.write(
await download_coroutine(url, timeout, **sessionkwargs),
)
Expand Down Expand Up @@ -160,7 +160,7 @@ async def update_single(path: str) -> str:
# Ensure folder for it exists too.
make_dirpath_exist(savepath)
url = urlbase + path
with open(savepath, "wb") as sfile:
with open(savepath, "wb") as sfile: # noqa: ASYNC230
sfile.write(
await download_coroutine(url, timeout, **sessionkwargs),
)
Expand Down

0 comments on commit f862922

Please sign in to comment.