From 8320d6e78f259e095bdca5e3b34e9ca8305ea72d Mon Sep 17 00:00:00 2001 From: yhtiyar Date: Sun, 7 Nov 2021 17:17:11 +0300 Subject: [PATCH] run isort --- crawlers/mooncrawl/mooncrawl/contract/cli.py | 2 +- .../mooncrawl/mooncrawl/contract/deployment_crawler.py | 9 +++++---- .../mooncrawl/contract/test_deployment_crawler.py | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/crawlers/mooncrawl/mooncrawl/contract/cli.py b/crawlers/mooncrawl/mooncrawl/contract/cli.py index d5b10c0b..0fd1ead4 100644 --- a/crawlers/mooncrawl/mooncrawl/contract/cli.py +++ b/crawlers/mooncrawl/mooncrawl/contract/cli.py @@ -8,8 +8,8 @@ from moonstreamdb.db import yield_db_session_ctx from sqlalchemy.orm.session import Session from web3 import Web3 -from .deployment_crawler import ContractDeploymentCrawler, MoonstreamDataStore from ..ethereum import connect +from .deployment_crawler import ContractDeploymentCrawler, MoonstreamDataStore logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) diff --git a/crawlers/mooncrawl/mooncrawl/contract/deployment_crawler.py b/crawlers/mooncrawl/mooncrawl/contract/deployment_crawler.py index b86579e8..0828341f 100644 --- a/crawlers/mooncrawl/mooncrawl/contract/deployment_crawler.py +++ b/crawlers/mooncrawl/mooncrawl/contract/deployment_crawler.py @@ -1,10 +1,11 @@ -from dataclasses import dataclass import logging +from dataclasses import dataclass from typing import Iterator, List, Optional, Tuple, cast -from hexbytes import HexBytes -from moonstreamdb.models import EthereumBlock, EthereumTransaction, EthereumLabel -from sqlalchemy.orm import Session, Query +from hexbytes import HexBytes +from moonstreamdb.models import (EthereumBlock, EthereumLabel, + EthereumTransaction) +from sqlalchemy.orm import Query, Session from web3 import Web3 from web3.types import TxReceipt diff --git a/crawlers/mooncrawl/mooncrawl/contract/test_deployment_crawler.py b/crawlers/mooncrawl/mooncrawl/contract/test_deployment_crawler.py index 22f66351..6568749b 100644 --- a/crawlers/mooncrawl/mooncrawl/contract/test_deployment_crawler.py +++ b/crawlers/mooncrawl/mooncrawl/contract/test_deployment_crawler.py @@ -2,6 +2,7 @@ from typing import Optional from unittest import TestCase from web3.main import Web3 + from .deployment_crawler import get_batch_block_range