Skip to content

Commit 9d94f94

Browse files
author
huangyi
committed
fix lint
1 parent 59e953f commit 9d94f94

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

testground/benchmark/benchmark/stateless.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,20 @@
22
import os
33
import socket
44
import subprocess
5-
import time
65
from pathlib import Path
76
from typing import List
87

98
import fire
109

1110
from .cli import ChainCommand
12-
from .peer import (CONTAINER_CRONOSD_PATH, FULLNODE_GROUP, VALIDATOR_GROUP,
13-
gen_genesis, init_node, patch_configs)
11+
from .peer import (
12+
CONTAINER_CRONOSD_PATH,
13+
FULLNODE_GROUP,
14+
VALIDATOR_GROUP,
15+
gen_genesis,
16+
init_node,
17+
patch_configs,
18+
)
1419
from .sendtx import generate_load
1520
from .topology import connect_all
1621
from .types import PeerPacket

testground/benchmark/benchmark/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,4 @@ def send_transaction(w3, tx, acct, wait=True):
9595

9696
def export_eth_account(cli, name: str, **kwargs) -> Account:
9797
kwargs.setdefault("keyring_backend", "test")
98-
return Account.from_key(
99-
cli("keys", "unsafe-export-eth-key", name, **kwargs)
100-
)
98+
return Account.from_key(cli("keys", "unsafe-export-eth-key", name, **kwargs))

testground/benchmark/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ build-backend = "poetry.core.masonry.api"
2626
[tool.poetry.scripts]
2727
testground-testcase = "benchmark.main:main"
2828
stateless-testcase = "benchmark.stateless:main"
29+
30+
[tool.black]
31+
line-length = 88
32+
33+
[tool.isort]
34+
profile = "black"

0 commit comments

Comments
 (0)