mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-25 16:46:35 +01:00
pre-commit
autoupdate (#3747)
Co-authored-by: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com>
This commit is contained in:
parent
1a7edd7a5d
commit
814c72052f
2 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ repos:
|
||||||
- aiolimiter~=1.1.0
|
- aiolimiter~=1.1.0
|
||||||
- . # this basically does `pip install -e .`
|
- . # this basically does `pip install -e .`
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: v1.2.0
|
rev: v1.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
name: mypy-ptb
|
name: mypy-ptb
|
||||||
|
@ -62,7 +62,7 @@ repos:
|
||||||
- cachetools~=5.3.1
|
- cachetools~=5.3.1
|
||||||
- . # this basically does `pip install -e .`
|
- . # this basically does `pip install -e .`
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v3.3.2
|
rev: v3.4.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
files: ^(telegram|examples|tests|docs)/.*\.py$
|
files: ^(telegram|examples|tests|docs)/.*\.py$
|
||||||
|
@ -77,7 +77,7 @@ repos:
|
||||||
- --diff
|
- --diff
|
||||||
- --check
|
- --check
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: 'v0.0.263'
|
rev: 'v0.0.270'
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
name: ruff
|
name: ruff
|
||||||
|
|
|
@ -290,7 +290,7 @@ class BaseRequest(
|
||||||
except TelegramError as exc:
|
except TelegramError as exc:
|
||||||
raise exc
|
raise exc
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
raise NetworkError(f"Unknown error in HTTP implementation: {repr(exc)}") from exc
|
raise NetworkError(f"Unknown error in HTTP implementation: {exc!r}") from exc
|
||||||
|
|
||||||
if HTTPStatus.OK <= code <= 299:
|
if HTTPStatus.OK <= code <= 299:
|
||||||
# 200-299 range are HTTP success statuses
|
# 200-299 range are HTTP success statuses
|
||||||
|
|
Loading…
Reference in a new issue