mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2026-06-19 07:35:19 +00:00
Apply isort and Update pre-commit.ci Configuration (#3049)
This commit is contained in:
@@ -5,6 +5,9 @@
|
||||
ci:
|
||||
autofix_prs: false
|
||||
autoupdate_schedule: monthly
|
||||
# We currently only need this behavior on the v13.x branch were we have the vendored urllib
|
||||
# TODO: Remove once we discontinue v13
|
||||
submodules: true
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/psf/black
|
||||
|
||||
@@ -42,7 +42,6 @@ from typing import (
|
||||
no_type_check,
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
|
||||
@@ -19,8 +19,6 @@
|
||||
"""Base class for Telegram Objects."""
|
||||
import json
|
||||
from copy import deepcopy
|
||||
|
||||
|
||||
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Type, TypeVar, Union
|
||||
|
||||
from telegram._utils.types import JSONDict
|
||||
|
||||
@@ -25,7 +25,6 @@ from http import HTTPStatus
|
||||
from types import TracebackType
|
||||
from typing import ClassVar, Optional, Tuple, Type, TypeVar, Union
|
||||
|
||||
|
||||
from telegram._utils.defaultvalue import DEFAULT_NONE as _DEFAULT_NONE
|
||||
from telegram._utils.types import JSONDict, ODVInput
|
||||
from telegram._version import __version__ as ptb_ver
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
# You should have received a copy of the GNU Lesser Public License
|
||||
# along with this program. If not, see [http://www.gnu.org/licenses/].
|
||||
import json
|
||||
from urllib.parse import quote
|
||||
|
||||
|
||||
from typing import Any, Dict
|
||||
from urllib.parse import quote
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ from copy import deepcopy
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
from telegram import Chat, Message, PhotoSize, TelegramObject, User
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user