Skip to content

Commit

Permalink
refactor: isort
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Jun 27, 2024
1 parent 87d6879 commit 7bc9b25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
7 changes: 3 additions & 4 deletions ape_aws/accounts.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
from json import dumps
from functools import cached_property
from json import dumps
from pathlib import Path
from typing import Any, Iterator, Optional

from ape.api.accounts import AccountAPI, AccountContainerAPI, TransactionAPI
from ape.types import AddressType, MessageSignature, SignableMessage, TransactionSignature
from ape.utils.validators import _validate_account_passphrase

from eth_account import Account as EthAccount
from eth_account._utils.legacy_transactions import serializable_unsigned_transaction_from_dict
from eth_account.messages import _hash_eip191_message, encode_defunct
from eth_account import Account as EthAccount
from eth_pydantic_types import HexBytes
from eth_typing import Hash32
from eth_utils import keccak, to_checksum_address, to_bytes
from eth_utils import keccak, to_bytes, to_checksum_address

from .client import kms_client
from .utils import _convert_der_to_rsv
Expand Down
11 changes: 5 additions & 6 deletions ape_aws/client.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
from cryptography.hazmat.primitives.asymmetric import ec, padding
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.backends import default_backend
from eth_account import Account

from datetime import datetime
from typing import ClassVar
from pydantic import BaseModel, Field, ConfigDict, field_validator

import boto3 # type: ignore[import]
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization
from cryptography.hazmat.primitives.asymmetric import ec, padding
from eth_account import Account
from pydantic import BaseModel, ConfigDict, Field, field_validator


class AliasResponse(BaseModel):
Expand Down
10 changes: 2 additions & 8 deletions ape_aws/kms/_cli.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
import click

from ape.cli import ape_cli_context

from ape_aws.accounts import AwsAccountContainer, KmsAccount
from ape_aws.client import (
CreateKey,
DeleteKey,
ImportKeyRequest,
ImportKey,
kms_client,
)
from ape_aws.client import CreateKey, DeleteKey, ImportKey, ImportKeyRequest, kms_client


@click.group("kms")
Expand Down

0 comments on commit 7bc9b25

Please sign in to comment.