8000 ` pre-commit` autoupdate (#3747) · Devors/python-telegram-bot@814c720 · GitHub
[go: up one dir, main page]

Skip to content

Commit 814c720

Browse files
pre-commit autoupdate (python-telegram-bot#3747)
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
1 parent 1a7edd7 commit 814c720

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

+3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ repos:
3535
- aiolimiter~=1.1.0
3636
- . # this basically does `pip install -e .`
3737
- repo: https://github.com/pre-commit/mirrors-mypy
38-
rev: v1.2.0
38+
rev: v1.3.0
3939
hooks:
4040
- id: mypy
4141
name: mypy-ptb
@@ -62,7 +62,7 @@ repos:
6262
- cachetools~=5.3.1
6363
- . # this basically does `pip install -e .`
6464
- repo: https://github.com/asottile/pyupgrade
65-
rev: v3.3.2
65+
rev: v3.4.0
6666
hooks:
6767
- id: pyupgrade
6868
files: ^(telegram|examples|tests|docs)/.*\.py$
@@ -77,7 +77,7 @@ repos:
7777
- --diff
7878
- --check
7979
- repo: https://github.com/charliermarsh/ruff-pre-commit
80-
rev: 'v0.0.263'
80+
rev: 'v0.0.270'
8181
hooks:
8282
- id: ruff
8383
name: ruff

telegram/request/_baserequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ async def _request_wrapper(
290290
except TelegramError as exc:
291291
raise exc
292292
except Exception as exc:
293-
raise NetworkError(f"Unknown error in HTTP implementation: {repr(exc)}") from exc
293+
raise NetworkError(f"Unknown error in HTTP implementation: {exc!r}") from exc
294294

295295
if HTTPStatus.OK <= code <= 299:
296296
# 200-299 range are HTTP success statuses

0 commit comments

Comments
 (0)
0