From 4815f307e7b5914c226f0b10f7f9554a7d91c72d Mon Sep 17 00:00:00 2001 From: illvart Date: Thu, 25 Apr 2024 20:45:24 +0700 Subject: [PATCH] update --- getter/plugins/bot.py | 6 +++--- getter/plugins/dev.py | 2 +- getter/plugins/vctools.py | 2 +- requirements-dev.txt | 4 ++-- requirements.txt | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/getter/plugins/bot.py b/getter/plugins/bot.py index fd7fefb..1034746 100644 --- a/getter/plugins/bot.py +++ b/getter/plugins/bot.py @@ -145,7 +145,7 @@ async def _(kst): pass if not hk.is_heroku: await yy.eor(r"\\**#Getter**// `Restarting as locally...`") - return await restart_app() + return restart_app() try: await yy.eor(r"\\**#Getter**// `Restarting as heroku... Wait for a few minutes.`") app = hk.heroku().app(hk.name) @@ -153,7 +153,7 @@ async def _(kst): except Exception as err: reply = await yy.eor(formatx_send(err), parse_mode="html") await reply.reply(r"\\**#Getter**// `Restarting as locally...`", silent=True) - await restart_app() + restart_app() @kasta_cmd( @@ -194,7 +194,7 @@ async def heroku_logs(kst) -> None: (file).unlink(missing_ok=True) -async def restart_app() -> None: +def restart_app() -> None: os.system("clear") try: import psutil diff --git a/getter/plugins/dev.py b/getter/plugins/dev.py index 3a9fd0d..f8ebb11 100644 --- a/getter/plugins/dev.py +++ b/getter/plugins/dev.py @@ -287,7 +287,7 @@ async def _(kst): pattern="crash$", dev=True, ) -async def _(kst): +async def _(kst): # noqa: RUF029 raise ValueError("not an error, just for testing (>_") diff --git a/getter/plugins/vctools.py b/getter/plugins/vctools.py index 82b81c4..9700aec 100644 --- a/getter/plugins/vctools.py +++ b/getter/plugins/vctools.py @@ -319,7 +319,7 @@ def group_call_instance(chat_id: int) -> None: call = CALLS.get(chat_id) @call.on_network_status_changed - async def __(context, is_connected): + async def __(context, is_connected): # noqa: RUF029 if not is_connected: CALLS.pop(chat_id, None) diff --git a/requirements-dev.txt b/requirements-dev.txt index a06c4bf..69e4727 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,3 @@ -ruff==0.3.7 -black==24.3.0 +ruff==0.4.1 +black==24.4.1 isort==5.13.2 diff --git a/requirements.txt b/requirements.txt index 7bccf85..a71f781 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,17 +13,17 @@ cachetools==5.3.3 asyncache==0.3.1 aiofiles==23.2.1 aiocsv==1.3.1 -aiohttp[speedups]==3.9.4 +aiohttp[speedups]==3.9.5 httpx==0.27.0 Markdown==3.6 beautifulsoup4==4.12.3 -emoji==2.11.0 +emoji==2.11.1 Unidecode==1.3.8 -validators==0.28.0 +validators==0.28.1 telegraph==2.2.0 requests==2.31.0 lottie==0.7.0 Pillow==10.3.0 CairoSVG==2.7.1 uvloop==0.19.0 -orjson==3.10.0 +orjson==3.10.1