mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-18 02:30:08 +08:00
Develop: 完全使用 ruff 替代 isort 与 black (#1757)
* 🚨 完全使用 ruff 替代 isort 与 black * 🚨 ruff lint&format
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from nonebot.utils import is_coroutine_callable
|
||||
from tortoise import Tortoise
|
||||
from tortoise.connection import connections
|
||||
from tortoise.models import Model as Model_
|
||||
from nonebot.utils import is_coroutine_callable
|
||||
|
||||
from zhenxun.configs.config import BotConfig
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
from typing import Any, overload
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, overload
|
||||
|
||||
from nonebot import require
|
||||
|
||||
require("nonebot_plugin_session")
|
||||
from loguru import logger as logger_
|
||||
from nonebot_plugin_session import Session
|
||||
from nonebot.log import default_filter, default_format
|
||||
from nonebot_plugin_session import Session
|
||||
from nonebot_plugin_uninfo import Session as uninfoSession
|
||||
|
||||
from zhenxun.configs.path_config import LOG_PATH
|
||||
|
||||
@@ -2,8 +2,8 @@ from abc import ABC, abstractmethod
|
||||
from collections.abc import Callable
|
||||
|
||||
import nonebot
|
||||
from pydantic import BaseModel
|
||||
from nonebot.utils import is_coroutine_callable
|
||||
from pydantic import BaseModel
|
||||
|
||||
from zhenxun.services.log import logger
|
||||
|
||||
|
||||
Reference in New Issue
Block a user