Apply isort and Update pre-commit.ci Configuration (#3049)

This commit is contained in:
Bibo-Joshi 2022-05-19 15:10:08 +02:00 committed by GitHub
parent ca4e4c6280
commit 2175af6abc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 4 additions and 8 deletions

View file

@ -5,6 +5,9 @@
ci: ci:
autofix_prs: false autofix_prs: false
autoupdate_schedule: monthly 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: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black

View file

@ -42,7 +42,6 @@ from typing import (
no_type_check, no_type_check,
) )
try: try:
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization from cryptography.hazmat.primitives import serialization

View file

@ -19,8 +19,6 @@
"""Base class for Telegram Objects.""" """Base class for Telegram Objects."""
import json import json
from copy import deepcopy from copy import deepcopy
from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Type, TypeVar, Union from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Type, TypeVar, Union
from telegram._utils.types import JSONDict from telegram._utils.types import JSONDict

View file

@ -25,7 +25,6 @@ from http import HTTPStatus
from types import TracebackType from types import TracebackType
from typing import ClassVar, Optional, Tuple, Type, TypeVar, Union from typing import ClassVar, Optional, Tuple, Type, TypeVar, Union
from telegram._utils.defaultvalue import DEFAULT_NONE as _DEFAULT_NONE from telegram._utils.defaultvalue import DEFAULT_NONE as _DEFAULT_NONE
from telegram._utils.types import JSONDict, ODVInput from telegram._utils.types import JSONDict, ODVInput
from telegram._version import __version__ as ptb_ver from telegram._version import __version__ as ptb_ver

View file

@ -17,10 +17,8 @@
# You should have received a copy of the GNU Lesser Public License # You should have received a copy of the GNU Lesser Public License
# along with this program. If not, see [http://www.gnu.org/licenses/]. # along with this program. If not, see [http://www.gnu.org/licenses/].
import json import json
from urllib.parse import quote
from typing import Any, Dict from typing import Any, Dict
from urllib.parse import quote
import pytest import pytest

View file

@ -22,7 +22,6 @@ from copy import deepcopy
import pytest import pytest
from telegram import Chat, Message, PhotoSize, TelegramObject, User from telegram import Chat, Message, PhotoSize, TelegramObject, User