Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ auto update by pre-commit hooks #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ repos:
rev: 5.13.2
hooks:
- id: isort
stages: [commit]
stages: [pre-commit]
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
stages: [commit]
stages: [pre-commit]
- repo: https://github.com/nonebot/nonemoji
rev: v0.1.4
hooks:
Expand Down
3 changes: 1 addition & 2 deletions OlivOS/nonebot/middlewares/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
from abc import ABC, abstractmethod
from typing import Any, Dict, Type, Union, Callable, Optional, Coroutine

from pydantic import BaseModel

from nonebot import get_bot
from nonebot.log import logger
from pydantic import BaseModel
from nonebot.adapters import Bot, Event

middlewares_map = {"OneBot V11": "onebot", "Telegram": "telegram"}
Expand Down
3 changes: 1 addition & 2 deletions OlivOS/nonebot/middlewares/onebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@

from typing import Dict, Type, Optional, cast

from OlivOS.messageAPI import Message_templet

from nonebot import get_bot
from OlivOS.messageAPI import Message_templet
from nonebot.adapters.onebot.v11.bot import Bot
from nonebot.adapters.onebot.v11.message import Message
from nonebot.adapters.onebot.v11.event import (
Expand Down
3 changes: 1 addition & 2 deletions OlivOS/nonebot/middlewares/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
from datetime import datetime
from typing import Dict, Type, Optional

from OlivOS.messageAPI import Message_templet

from nonebot import get_bot
from OlivOS.messageAPI import Message_templet
from nonebot.adapters.telegram.bot import Bot
from nonebot.adapters.telegram.message import Message
from nonebot.adapters.telegram.event import (
Expand Down