Skip to content

Commit

Permalink
style: format corrections with black
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <[email protected]>
  • Loading branch information
dbluhm committed Feb 21, 2024
1 parent 90585e7 commit 6ade8a6
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
1 change: 1 addition & 0 deletions proxy_mediator/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Connections Protocol Starter Kit."""

import asyncio
from contextlib import asynccontextmanager, suppress
import logging
Expand Down
1 change: 1 addition & 0 deletions proxy_mediator/agent.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Proxy Mediator Agent."""

import asyncio
from contextvars import ContextVar
import logging
Expand Down
1 change: 1 addition & 0 deletions proxy_mediator/connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Connection object."""

import asyncio
from asyncio.futures import Future
import json
Expand Down
1 change: 0 additions & 1 deletion proxy_mediator/error.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Errors and error related utilities."""


from abc import ABC
import functools
import logging
Expand Down
1 change: 1 addition & 0 deletions proxy_mediator/protocols/basicmessage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Basic Message Module."""

from aries_staticagent.module import Module, ModuleRouter
from aries_staticagent.utils import timestamp

Expand Down
6 changes: 3 additions & 3 deletions proxy_mediator/protocols/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ def doc_for_connection(
"type": "IndyAgent",
"recipientKeys": [connection.verkey_b58],
"routingKeys": [],
"serviceEndpoint": endpoint
if endpoint is not None
else self.endpoint,
"serviceEndpoint": (
endpoint if endpoint is not None else self.endpoint
),
}
],
}
Expand Down
9 changes: 6 additions & 3 deletions proxy_mediator/protocols/coordinate_mediation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Coordinate mediation protocol."""

import asyncio
from contextvars import ContextVar
import logging
Expand Down Expand Up @@ -156,9 +157,11 @@ async def mediate_request(self, msg, conn):
"routing_keys": [
verkey_to_didkey(agent.mediator_connection.verkey),
*[
verkey_b58_to_didkey(key)
if not key.startswith("did:key:")
else key
(
verkey_b58_to_didkey(key)
if not key.startswith("did:key:")
else key
)
for key in self.external_mediator_routing_keys
],
],
Expand Down
8 changes: 5 additions & 3 deletions proxy_mediator/protocols/oob_didexchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ async def response(self, msg: Message, conn: Connection):
"@type": self.type("complete"),
"~thread": {
"thid": msg.thread["thid"],
"pthid": msg.thread["pthid"]
if "pthid" in msg.thread
else msg.thread["thid"],
"pthid": (
msg.thread["pthid"]
if "pthid" in msg.thread
else msg.thread["thid"]
),
},
}
)
Expand Down
1 change: 1 addition & 0 deletions proxy_mediator/protocols/routing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Routing protocol."""

import json
import logging
from typing import Any, Dict
Expand Down
1 change: 1 addition & 0 deletions proxy_mediator/store.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helper for working with Askar store."""

from contextlib import asynccontextmanager
from contextvars import ContextVar
import logging
Expand Down

0 comments on commit 6ade8a6

Please sign in to comment.