Problem: Flake8 complained that imports were not at the top of the file

Solution: Had to play around with the order of imports to avoid cyclic dependencies, but its working and style compliant now
This commit is contained in:
z-bowen 2018-07-24 21:42:54 +02:00
parent 507fe1e1a5
commit ddce2d581b

View File

@ -2,6 +2,9 @@ import copy
import logging import logging
from bigchaindb.log import DEFAULT_LOGGING_CONFIG as log_config from bigchaindb.log import DEFAULT_LOGGING_CONFIG as log_config
from bigchaindb.lib import BigchainDB # noqa
from bigchaindb.version import __version__ # noqa
from bigchaindb.core import App
# from functools import reduce # from functools import reduce
# PORT_NUMBER = reduce(lambda x, y: x * y, map(ord, 'BigchainDB')) % 2**16 # PORT_NUMBER = reduce(lambda x, y: x * y, map(ord, 'BigchainDB')) % 2**16
@ -84,6 +87,3 @@ config = {
# the user wants to reconfigure the node. Check ``bigchaindb.config_utils`` # the user wants to reconfigure the node. Check ``bigchaindb.config_utils``
# for more info. # for more info.
_config = copy.deepcopy(config) _config = copy.deepcopy(config)
from bigchaindb.lib import BigchainDB # noqa
from bigchaindb.core import App
from bigchaindb.version import __version__ # noqa