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

[pre-commit.ci] pre-commit autoupdate #44

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 @@ -6,15 +6,15 @@ repos:
# hooks:
# - id: flake8
- repo: https://github.com/psf/black
rev: 22.1.0
rev: 24.8.0
hooks:
- id: black
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: 'v0.770'
# hooks:
# - id: mypy
- repo: https://github.com/asottile/reorder_python_imports
rev: v2.7.1
- repo: https://github.com/asottile/reorder-python-imports
rev: v3.13.0
hooks:
- id: reorder-python-imports
# - repo: git@github.com:humitos/mirrors-autoflake.git
Expand Down
8 changes: 5 additions & 3 deletions examples/playground.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ async def main():

await client.send_message(
"@TgIntegration",
"You did not reply :("
if response.is_empty
else f"You replied with: {response.full_text}",
(
"You did not reply :("
if response.is_empty
else f"You replied with: {response.full_text}"
),
)


Expand Down
6 changes: 3 additions & 3 deletions tgintegration/botcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ async def collect(
timeouts=TimeoutSettings(
max_wait=max_wait,
wait_consecutive=wait_consecutive,
raise_on_timeout=raise_
if raise_ is not None
else self.raise_no_response,
raise_on_timeout=(
raise_ if raise_ is not None else self.raise_no_response
),
),
) as response:
yield response
Expand Down
2 changes: 1 addition & 1 deletion tgintegration/update_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def record_message(self, _, message: Message):
async with self._lock:
message.exact_timestamp = time.time()
self.messages.append(message)
for (pred, ev) in self._event_conditions:
for pred, ev in self._event_conditions:
if pred(self.messages):
ev.set()

Expand Down
Loading