diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1ee39b2..3abb236 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: autoupdate_commit_msg: ':arrow_up: auto update by pre-commit hooks' repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.7.2 + rev: v0.8.1 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/nonebot_plugin_wait_a_minute/__init__.py b/nonebot_plugin_wait_a_minute/__init__.py index fc2fd93..51d6381 100644 --- a/nonebot_plugin_wait_a_minute/__init__.py +++ b/nonebot_plugin_wait_a_minute/__init__.py @@ -11,7 +11,7 @@ from nonebot.consts import WINDOWS from nonebot.exception import SkippedException from nonebot.log import logger -from nonebot.matcher import Matcher # noqa: TCH002 # NoneBot Dependency Injection Require +from nonebot.matcher import Matcher # noqa: TC002 # NoneBot Dependency Injection Require from nonebot.message import run_preprocessor from nonebot.plugin import PluginMetadata from nonebot.utils import is_coroutine_callable, run_sync @@ -133,4 +133,4 @@ async def _(matcher: Matcher): on_shutdown_before = Hook.register graceful = Hook.graceful -__all__ = ['on_shutdown_before', 'graceful'] +__all__ = ['graceful', 'on_shutdown_before']