Skip to content

Commit 1b7dd6e

Browse files
committed
Run latest isort
1 parent 4a0ba2c commit 1b7dd6e

File tree

7 files changed

+16
-15
lines changed

7 files changed

+16
-15
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ifdef CIRCLECI
4848
JOBS_ARG=--jobs=8
4949
endif
5050
LINT_PATHS = raiden/ tools/ setup.py
51-
ISORT_PARAMS = --ignore-whitespace --settings-path ./ --skip-glob '*/node_modules/*' --recursive $(LINT_PATHS)
51+
ISORT_PARAMS = --ignore-whitespace --settings-path ./ --skip-glob '*/node_modules/*' $(LINT_PATHS)
5252

5353
lint: ISORT_CHECK_PARAMS := --diff --check-only
5454
lint: BLACK_CHECK_PARAMS := --check --diff

raiden/api/python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
)
7373

7474
if TYPE_CHECKING:
75-
from raiden.raiden_service import RaidenService, PaymentStatus
75+
from raiden.raiden_service import PaymentStatus, RaidenService
7676

7777
log = structlog.get_logger(__name__)
7878

raiden/tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ def enable_greenlet_debugger(request):
168168
discarded. Making it impossible to execute a post_mortem
169169
"""
170170
if request.config.option.usepdb:
171-
import pdb
172171
import bdb
172+
import pdb
173173

174174
# Do not run pdb again if an exception hits top-level for a second
175175
# greenlet and the previous pdb session is still running
@@ -206,7 +206,7 @@ def profiler(request):
206206
profiler = None
207207

208208
if request.config.option.profiler == "flamegraph-trace":
209-
from raiden.utils.profiling.sampler import TraceSampler, FlameGraphCollector
209+
from raiden.utils.profiling.sampler import FlameGraphCollector, TraceSampler
210210

211211
now = datetime.datetime.now()
212212
stack_path = os.path.join("/tmp", f"{now:%Y%m%d_%H%M}_stack.data")

raiden/tests/mocked/test_matrix_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ def mock_matrix(
6868
retries_before_backoff,
6969
):
7070

71+
from raiden.network.transport.matrix import transport as transport_module
7172
from raiden.network.transport.matrix.client import GMatrixClient
7273
from raiden.network.transport.matrix.utils import UserPresence
73-
from raiden.network.transport.matrix import transport as transport_module
7474

7575
def make_client_monkey(
7676
handle_messages_callback, handle_member_join_callback, servers, *args, **kwargs

raiden/utils/system.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ def get_project_root() -> str:
1313
def get_system_spec() -> Dict[str, Any]:
1414
"""Collect information about the system and installation.
1515
"""
16-
import pkg_resources
1716
import platform
1817

18+
import pkg_resources
19+
1920
if sys.platform == "darwin":
2021
system_info = "macOS {} {}".format(platform.mac_ver()[0], platform.architecture()[0])
2122
else:

raiden/utils/typing.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@
4343

4444
if TYPE_CHECKING:
4545
# pylint: disable=unused-import
46-
from raiden.transfer.state import ( # noqa: F401
47-
HashTimeLockState,
48-
NettingChannelState,
49-
UnlockPartialProofState,
50-
NetworkState,
51-
)
46+
from raiden.exceptions import RaidenRecoverableError, RaidenUnrecoverableError # noqa: F401
47+
from raiden.messages.monitoring_service import SignedBlindedBalanceProof # noqa: F401
5248
from raiden.transfer.mediated_transfer.state import ( # noqa: F401
5349
InitiatorTransferState,
5450
LockedTransferSignedState,
5551
LockedTransferUnsignedState,
5652
)
57-
from raiden.messages.monitoring_service import SignedBlindedBalanceProof # noqa: F401
58-
from raiden.exceptions import RaidenUnrecoverableError, RaidenRecoverableError # noqa: F401
53+
from raiden.transfer.state import ( # noqa: F401
54+
HashTimeLockState,
55+
NettingChannelState,
56+
NetworkState,
57+
UnlockPartialProofState,
58+
)
5959

6060

6161
MYPY_ANNOTATION = "This assert is used to tell mypy what is the type of the variable"

tools/process_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def process_results(results_dir, plot_filename):
7878
import matplotlib
7979

8080
matplotlib.use("Agg")
81-
import matplotlib.pyplot as plt
8281
import matplotlib.dates as md
82+
import matplotlib.pyplot as plt
8383

8484
print("Writing plot to '{}'...".format(plot_filename))
8585
dates = [datetime.fromtimestamp(ts) for ts in times]

0 commit comments

Comments
 (0)