mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2024-09-11 18:58:59 +03:00
more isort (#11401)
This commit is contained in:
parent
a1db012b7a
commit
34eed9a3bc
@ -4,9 +4,6 @@ profile=black
|
||||
skip_gitignore=true
|
||||
# venv/bin/isort --check . |& sed -n "s;ERROR: ${PWD}/\(.*\) Imports are.*; \1;p" | sort | uniq
|
||||
extend_skip=
|
||||
benchmarks/block_store.py
|
||||
benchmarks/coin_store.py
|
||||
benchmarks/utils.py
|
||||
chia/clvm/spend_sim.py
|
||||
chia/cmds/chia.py
|
||||
chia/cmds/db.py
|
||||
@ -136,7 +133,6 @@ extend_skip=
|
||||
chia/wallet/wallet.py
|
||||
chia/wallet/wallet_state_manager.py
|
||||
chia/wallet/wallet_weight_proof_handler.py
|
||||
installhelper.py
|
||||
tests/blockchain/test_blockchain.py
|
||||
tests/blockchain/test_blockchain_transactions.py
|
||||
tests/block_tools.py
|
||||
@ -221,4 +217,3 @@ extend_skip=
|
||||
tests/wallet_tools.py
|
||||
tests/weight_proof/test_weight_proof.py
|
||||
tools/analyze-chain.py
|
||||
tools/run_block.py
|
||||
|
@ -1,35 +1,35 @@
|
||||
import asyncio
|
||||
import random
|
||||
from time import monotonic
|
||||
from pathlib import Path
|
||||
from chia.full_node.block_store import BlockStore
|
||||
import os
|
||||
import random
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from time import monotonic
|
||||
|
||||
from benchmarks.utils import clvm_generator
|
||||
from chia.util.db_wrapper import DBWrapper2
|
||||
from chia.util.ints import uint128, uint64, uint32, uint8
|
||||
from utils import (
|
||||
rewards,
|
||||
rand_hash,
|
||||
setup_db,
|
||||
rand_bytes,
|
||||
rand_class_group_element,
|
||||
rand_g1,
|
||||
rand_g2,
|
||||
rand_bytes,
|
||||
rand_hash,
|
||||
rand_vdf,
|
||||
rand_vdf_proof,
|
||||
rand_class_group_element,
|
||||
rewards,
|
||||
setup_db,
|
||||
)
|
||||
from chia.types.full_block import FullBlock
|
||||
|
||||
from benchmarks.utils import clvm_generator
|
||||
from chia.consensus.block_record import BlockRecord
|
||||
from chia.full_node.block_store import BlockStore
|
||||
from chia.types.blockchain_format.foliage import Foliage, FoliageBlockData, FoliageTransactionBlock, TransactionsInfo
|
||||
from chia.types.blockchain_format.pool_target import PoolTarget
|
||||
from chia.types.blockchain_format.program import SerializedProgram
|
||||
from chia.types.blockchain_format.proof_of_space import ProofOfSpace
|
||||
from chia.types.blockchain_format.reward_chain_block import RewardChainBlock
|
||||
from chia.types.blockchain_format.pool_target import PoolTarget
|
||||
from chia.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo, FoliageBlockData
|
||||
from chia.types.blockchain_format.program import SerializedProgram
|
||||
from chia.types.blockchain_format.sized_bytes import bytes32
|
||||
from chia.types.blockchain_format.sub_epoch_summary import SubEpochSummary
|
||||
|
||||
from chia.types.full_block import FullBlock
|
||||
from chia.util.db_wrapper import DBWrapper2
|
||||
from chia.util.ints import uint8, uint32, uint64, uint128
|
||||
|
||||
NUM_ITERS = 20000
|
||||
|
||||
|
@ -1,17 +1,18 @@
|
||||
import asyncio
|
||||
import random
|
||||
from time import monotonic
|
||||
from pathlib import Path
|
||||
from chia.full_node.coin_store import CoinStore
|
||||
from typing import List, Tuple
|
||||
import os
|
||||
import random
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from time import monotonic
|
||||
from typing import List, Tuple
|
||||
|
||||
from chia.util.db_wrapper import DBWrapper2
|
||||
from chia.types.blockchain_format.sized_bytes import bytes32
|
||||
from utils import rand_hash, rewards, setup_db
|
||||
|
||||
from chia.full_node.coin_store import CoinStore
|
||||
from chia.types.blockchain_format.coin import Coin
|
||||
from chia.util.ints import uint64, uint32
|
||||
from utils import rewards, rand_hash, setup_db
|
||||
from chia.types.blockchain_format.sized_bytes import bytes32
|
||||
from chia.util.db_wrapper import DBWrapper2
|
||||
from chia.util.ints import uint32, uint64
|
||||
|
||||
NUM_ITERS = 200
|
||||
|
||||
|
@ -1,28 +1,29 @@
|
||||
from chia.consensus.default_constants import DEFAULT_CONSTANTS
|
||||
from chia.util.ints import uint64, uint32, uint8
|
||||
import os
|
||||
import random
|
||||
import subprocess
|
||||
import sys
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import Tuple
|
||||
|
||||
import aiosqlite
|
||||
import click
|
||||
from blspy import AugSchemeMPL, G1Element, G2Element
|
||||
|
||||
from chia.consensus.coinbase import create_farmer_coin, create_pool_coin
|
||||
from chia.consensus.default_constants import DEFAULT_CONSTANTS
|
||||
from chia.types.blockchain_format.classgroup import ClassgroupElement
|
||||
from chia.types.blockchain_format.coin import Coin
|
||||
from chia.types.blockchain_format.sized_bytes import bytes32, bytes100
|
||||
from chia.types.blockchain_format.vdf import VDFInfo, VDFProof
|
||||
from chia.types.blockchain_format.foliage import Foliage, FoliageBlockData, FoliageTransactionBlock, TransactionsInfo
|
||||
from chia.types.blockchain_format.pool_target import PoolTarget
|
||||
from chia.types.blockchain_format.program import SerializedProgram
|
||||
from chia.types.blockchain_format.proof_of_space import ProofOfSpace
|
||||
from chia.types.blockchain_format.reward_chain_block import RewardChainBlock
|
||||
from chia.types.blockchain_format.sized_bytes import bytes32, bytes100
|
||||
from chia.types.blockchain_format.vdf import VDFInfo, VDFProof
|
||||
from chia.types.full_block import FullBlock
|
||||
from chia.util.ints import uint128
|
||||
from chia.util.db_wrapper import DBWrapper2
|
||||
from typing import Tuple
|
||||
from pathlib import Path
|
||||
from datetime import datetime
|
||||
import aiosqlite
|
||||
import click
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import random
|
||||
from blspy import G2Element, G1Element, AugSchemeMPL
|
||||
from chia.util.ints import uint8, uint32, uint64, uint128
|
||||
|
||||
# farmer puzzle hash
|
||||
ph = bytes32(b"a" * 32)
|
||||
|
@ -6,8 +6,9 @@
|
||||
#
|
||||
import json
|
||||
import os
|
||||
from os.path import exists
|
||||
import subprocess
|
||||
from os.path import exists
|
||||
|
||||
from pkg_resources import parse_version
|
||||
|
||||
|
||||
|
@ -38,17 +38,17 @@ and in this way they control whether a spend is valid or not.
|
||||
import json
|
||||
from dataclasses import dataclass
|
||||
from pathlib import Path
|
||||
from typing import List, Tuple, Dict
|
||||
from typing import Dict, List, Tuple
|
||||
|
||||
import click
|
||||
|
||||
from chia_rs import COND_CANON_INTS, NO_NEG_DIV
|
||||
from clvm.casts import int_from_bytes
|
||||
|
||||
from chia.consensus.constants import ConsensusConstants
|
||||
from chia.consensus.default_constants import DEFAULT_CONSTANTS
|
||||
from chia.full_node.generator import create_generator_args
|
||||
from chia.types.blockchain_format.program import SerializedProgram
|
||||
from chia.types.blockchain_format.coin import Coin
|
||||
from chia.types.blockchain_format.program import SerializedProgram
|
||||
from chia.types.blockchain_format.sized_bytes import bytes32
|
||||
from chia.types.condition_opcodes import ConditionOpcode
|
||||
from chia.types.condition_with_args import ConditionWithArgs
|
||||
@ -57,7 +57,6 @@ from chia.util.config import load_config
|
||||
from chia.util.default_root import DEFAULT_ROOT_PATH
|
||||
from chia.util.ints import uint32, uint64
|
||||
from chia.wallet.cat_wallet.cat_utils import match_cat_puzzle
|
||||
from clvm.casts import int_from_bytes
|
||||
|
||||
|
||||
@dataclass
|
||||
|
Loading…
Reference in New Issue
Block a user