Skip to content

Commit 2cebc37

Browse files
committed
happy flake8
Signed-off-by: Adam Burdett <burdettadam@gmail.com>
1 parent 7fff35f commit 2cebc37

13 files changed

Lines changed: 35 additions & 59 deletions

File tree

aries_cloudagent/config/default_context.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ async def bind_providers(self, context: InjectionContext):
7070
# so it can be shared by all wallet instances. If we set it in the indy sdk
7171
# profile provider it could mean other wallets won't have access to the provider
7272
if is_indy_sdk_module_installed():
73-
from ..ledger.indy import (IndySdkLedgerPool,
74-
IndySdkLedgerPoolProvider)
73+
from ..ledger.indy import IndySdkLedgerPool, IndySdkLedgerPoolProvider
7574

7675
context.injector.bind_provider(
7776
IndySdkLedgerPool,

aries_cloudagent/core/tests/test_conductor.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
from ...config.injection_context import InjectionContext
99
from ...connections.models.conn_record import ConnRecord
1010
from ...connections.models.connection_target import ConnectionTarget
11-
from ...connections.models.diddoc import (DIDDoc, PublicKey, PublicKeyType,
12-
Service)
11+
from ...connections.models.diddoc import DIDDoc, PublicKey, PublicKeyType, Service
1312
from ...core.event_bus import EventBus, MockEventBus
1413
from ...core.in_memory import InMemoryProfileManager
1514
from ...core.profile import ProfileManager
1615
from ...core.protocol_registry import ProtocolRegistry
1716
from ...multitenant.base import BaseMultitenantManager
1817
from ...multitenant.manager import MultitenantManager
19-
from ...protocols.coordinate_mediation.mediation_invite_store import \
20-
MediationInviteRecord
21-
from ...protocols.coordinate_mediation.v1_0.models.mediation_record import \
22-
MediationRecord
18+
from ...protocols.coordinate_mediation.mediation_invite_store import (
19+
MediationInviteRecord,
20+
)
21+
from ...protocols.coordinate_mediation.v1_0.models.mediation_record import (
22+
MediationRecord,
23+
)
2324
from ...resolver.did_resolver import DIDResolver
2425
from ...storage.base import BaseStorage
2526
from ...storage.error import StorageNotFoundError

aries_cloudagent/messaging/decorators/tests/test_attach_decorator.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@
1212
from ....wallet.indy import IndySdkWallet
1313
from ....wallet.key_type import ED25519
1414
from ....wallet.util import b64_to_bytes, bytes_to_b64
15-
from ..attach_decorator import (AttachDecorator, AttachDecoratorData,
16-
AttachDecoratorData1JWS,
17-
AttachDecoratorDataJWS,
18-
AttachDecoratorDataJWSHeader, did_key, raw_key)
15+
from ..attach_decorator import (
16+
AttachDecorator,
17+
AttachDecoratorData,
18+
AttachDecoratorData1JWS,
19+
AttachDecoratorDataJWS,
20+
AttachDecoratorDataJWSHeader,
21+
did_key,
22+
raw_key,
23+
)
1924

2025
KID = "did:sov:LjgpST2rjsoxYegQDRm7EL#keys-4"
2126
INDY_CRED = {

aries_cloudagent/protocols/connections/v1_0/manager.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -828,9 +828,7 @@ async def create_static_connection(
828828
async with self.profile.session() as session:
829829
wallet = session.inject(BaseWallet)
830830
# seed and DID optional
831-
my_info = await wallet.create_local_did(
832-
SOV, ED25519, my_seed, my_did
833-
)
831+
my_info = await wallet.create_local_did(SOV, ED25519, my_seed, my_did)
834832

835833
# must provide their DID and verkey if the seed is not known
836834
if (not their_did or not their_verkey) and not their_seed:
@@ -842,9 +840,7 @@ async def create_static_connection(
842840
if not their_verkey:
843841
their_verkey_bin, _ = create_keypair(ED25519, their_seed.encode())
844842
their_verkey = bytes_to_b58(their_verkey_bin)
845-
their_info = DIDInfo(
846-
their_did, their_verkey, {}, method=SOV, key_type=ED25519
847-
)
843+
their_info = DIDInfo(their_did, their_verkey, {}, method=SOV, key_type=ED25519)
848844

849845
# Create connection record
850846
connection = ConnRecord(

aries_cloudagent/protocols/didexchange/v1_0/handlers/tests/test_request_handler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,7 @@ async def setUp(self):
8787
await self.conn_rec.save(self.session)
8888

8989
wallet = self.session.wallet
90-
self.did_info = await wallet.create_local_did(
91-
method=SOV, key_type=ED25519
92-
)
90+
self.did_info = await wallet.create_local_did(method=SOV, key_type=ED25519)
9391

9492
self.did_doc_attach = AttachDecorator.data_base64(self.did_doc().serialize())
9593
await self.did_doc_attach.data.sign(self.did_info.verkey, wallet)

aries_cloudagent/protocols/didexchange/v1_0/messages/tests/test_request.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
from asynctest import TestCase as AsyncTestCase
44

5-
from ......connections.models.diddoc import (DIDDoc, PublicKey, PublicKeyType,
6-
Service)
5+
from ......connections.models.diddoc import DIDDoc, PublicKey, PublicKeyType, Service
76
from ......core.in_memory import InMemoryProfile
87
from ......messaging.decorators.attach_decorator import AttachDecorator
98
from ......wallet.did_method import SOV

aries_cloudagent/protocols/didexchange/v1_0/messages/tests/test_response.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
from asynctest import TestCase as AsyncTestCase
44

5-
from ......connections.models.diddoc import (DIDDoc, PublicKey, PublicKeyType,
6-
Service)
5+
from ......connections.models.diddoc import DIDDoc, PublicKey, PublicKeyType, Service
76
from ......core.in_memory import InMemoryProfile
87
from ......messaging.decorators.attach_decorator import AttachDecorator
98
from ......wallet.did_method import SOV

aries_cloudagent/protocols/didexchange/v1_0/tests/test_manager.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
from .....connections.base_manager import BaseConnectionManagerError
1010
from .....connections.models.conn_record import ConnRecord
1111
from .....connections.models.connection_target import ConnectionTarget
12-
from .....connections.models.diddoc import (DIDDoc, PublicKey, PublicKeyType,
13-
Service)
12+
from .....connections.models.diddoc import DIDDoc, PublicKey, PublicKeyType, Service
1413
from .....core.in_memory import InMemoryProfile
1514
from .....core.oob_processor import OobMessageProcessor
1615
from .....did.did_key import DIDKey
@@ -30,8 +29,7 @@
3029
from .....wallet.in_memory import InMemoryWallet
3130
from .....wallet.key_type import ED25519
3231
from ....coordinate_mediation.v1_0.manager import MediationManager
33-
from ....coordinate_mediation.v1_0.models.mediation_record import \
34-
MediationRecord
32+
from ....coordinate_mediation.v1_0.models.mediation_record import MediationRecord
3533
from ....coordinate_mediation.v1_0.route_manager import RouteManager
3634
from ....didcomm_prefix import DIDCommPrefix
3735
from ....discovery.v2_0.manager import V20DiscoveryMgr

aries_cloudagent/transport/tests/test_pack_format.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
from ...wallet.error import WalletError
1313
from ...wallet.key_type import ED25519
1414
from .. import pack_format as test_module
15-
from ..error import (RecipientKeysError, WireFormatEncodeError,
16-
WireFormatParseError)
15+
from ..error import RecipientKeysError, WireFormatEncodeError, WireFormatParseError
1716
from ..pack_format import PackWireFormat
1817

1918

aries_cloudagent/utils/tests/test_outofband.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
class TestOutOfBand(TestCase):
1111
test_did = "55GkHamhTU1ZbTbV2ab9DE"
1212
test_verkey = "3Dn1SJNPaCXcvvJvSbsFWP2xaCjMom3can8CQNhWrTRx"
13-
test_did_info = DIDInfo(
14-
test_did, test_verkey, None, method=SOV, key_type=ED25519
15-
)
13+
test_did_info = DIDInfo(test_did, test_verkey, None, method=SOV, key_type=ED25519)
1614

1715
def test_serialize_oob(self):
1816
invi = InvitationMessage(

0 commit comments

Comments
 (0)