Skip to content

Commit

Permalink
run ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Archento committed Jan 14, 2025
1 parent 007b31f commit c29372a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
12 changes: 6 additions & 6 deletions python/examples/07-msg-verification/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ async def send_message(ctx: Context):

@alice.on_message(model=Message)
async def alice_rx_message(ctx: Context, sender: str, msg: Message):
assert Identity.verify_digest(
sender, bytes.fromhex(msg.digest), msg.signature
), "couldn't verify bob's message"
assert Identity.verify_digest(sender, bytes.fromhex(msg.digest), msg.signature), (
"couldn't verify bob's message"
)

ctx.logger.info("Bob's message verified!")
ctx.logger.info(f"Received message from {sender}: {msg.message}")


@bob.on_message(model=Message)
async def bob_rx_message(ctx: Context, sender: str, msg: Message):
assert Identity.verify_digest(
sender, bytes.fromhex(msg.digest), msg.signature
), "couldn't verify alice's message"
assert Identity.verify_digest(sender, bytes.fromhex(msg.digest), msg.signature), (
"couldn't verify alice's message"
)
ctx.logger.info("Alice's message verified!")

ctx.logger.info(f"Received message from {sender}: {msg.message}")
Expand Down
2 changes: 1 addition & 1 deletion python/scripts/do_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def main(self):

print("\nMake release")
make_release(current_version)
print("Release made." "")
print("Release made.")

print("\nDONE")

Expand Down
3 changes: 1 addition & 2 deletions python/src/uagents/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def parse_endpoint_config(
logger.warning("Endpoint configuration overrides proxy setting.")
elif mailbox and proxy:
logger.warning(
"Mailbox and proxy settings are mutually exclusive. "
"Defaulting to mailbox."
"Mailbox and proxy settings are mutually exclusive. Defaulting to mailbox."
)

if isinstance(endpoint, dict):
Expand Down

0 comments on commit c29372a

Please sign in to comment.