Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#435)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.1](astral-sh/ruff-pre-commit@v0.5.7...v0.6.1)
- [github.com/pdm-project/pdm: 2.17.3 → 2.18.1](pdm-project/pdm@2.17.3...2.18.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* resolve ASYNC009 reported by ruff

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: SoulMelody <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and SoulMelody authored Aug 20, 2024
1 parent 49865c5 commit 78625f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand All @@ -19,7 +19,7 @@ repos:
additional_dependencies: [proto-plus-stubs, types-parsimonious, types-pyyaml, types-ujson]

- repo: https://github.com/pdm-project/pdm
rev: 2.17.3
rev: 2.18.1
hooks:
- id: pdm-lock-check
args: ["-G", ":all"]
6 changes: 3 additions & 3 deletions libresvip/gui/modules/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def _check_for_updates(self) -> None:
await self.notify_async(
title=_("Checking for Updates"),
message=_("Please wait..."),
timeout=self.request_timeout,
send_timeout=self.request_timeout,
)
resp = await client.get(
"https://api.github.com/repos/SoulMelody/LibreSVIP/releases/latest"
Expand Down Expand Up @@ -201,7 +201,7 @@ async def notify_async(
title: str,
message: str,
buttons: Sequence[Button] = (),
timeout: int = -1,
send_timeout: int = -1,
) -> Optional[Awaitable[Notification]]:
try:
if self.last_notify_time is None:
Expand All @@ -210,7 +210,7 @@ async def notify_async(
await asyncio.sleep(1 - elapsed)
self.last_notify_time = time.time()
return await self.notifier.send(
title=title, message=message, buttons=buttons, timeout=timeout
title=title, message=message, buttons=buttons, timeout=send_timeout
)
except Exception as e:
logger.exception(e)
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import pytest


@pytest.fixture()
@pytest.fixture
def pinyin_example() -> list[str]:
return ["山东菏泽", "曹县,", "牛pi", "666我滴", "宝贝儿!", "行-走-", "行-业-", "-"]


@pytest.fixture()
@pytest.fixture
def _pretty_construct() -> None:
from enum import IntEnum

Expand Down

0 comments on commit 78625f5

Please sign in to comment.