Enable isort check in tox
This commit is contained in:
@@ -5,8 +5,8 @@ import logging
|
||||
|
||||
import ecdsa
|
||||
|
||||
from . import interface
|
||||
from .. import formats
|
||||
from . import interface
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""KeepKey-related code (see https://www.keepkey.com/)."""
|
||||
|
||||
from . import trezor
|
||||
from .. import formats
|
||||
from . import trezor
|
||||
|
||||
|
||||
def _verify_support(identity, ecdh):
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
|
||||
# pylint: disable=unused-import,import-error
|
||||
|
||||
from keepkeylib.client import CallException, PinException
|
||||
from keepkeylib.client import CallException
|
||||
from keepkeylib.client import KeepKeyClient as Client
|
||||
from keepkeylib.client import PinException
|
||||
from keepkeylib.messages_pb2 import PassphraseAck, PinMatrixAck
|
||||
from keepkeylib.transport_hid import HidTransport
|
||||
from keepkeylib.transport_webusb import WebUsbTransport
|
||||
|
||||
@@ -6,8 +6,8 @@ import struct
|
||||
|
||||
from ledgerblue import comm # pylint: disable=import-error
|
||||
|
||||
from . import interface
|
||||
from .. import formats
|
||||
from . import interface
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -2,10 +2,11 @@
|
||||
# pylint: disable=attribute-defined-outside-init
|
||||
"""OnlyKey-related code (see https://www.onlykey.io/)."""
|
||||
|
||||
import logging
|
||||
import hashlib
|
||||
import codecs
|
||||
import hashlib
|
||||
import logging
|
||||
import time
|
||||
|
||||
import ecdsa
|
||||
import nacl.signing
|
||||
import unidecode
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
# pylint: disable=unused-import,import-error,no-name-in-module
|
||||
|
||||
from onlykey import OnlyKey, Message
|
||||
from onlykey import Message, OnlyKey
|
||||
|
||||
@@ -5,8 +5,8 @@ import logging
|
||||
|
||||
import semver
|
||||
|
||||
from . import interface
|
||||
from .. import formats
|
||||
from . import interface
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
"""TREZOR-related definitions."""
|
||||
|
||||
import logging
|
||||
# pylint: disable=unused-import,import-error,no-name-in-module,no-member
|
||||
import os
|
||||
import logging
|
||||
|
||||
import mnemonic
|
||||
import semver
|
||||
|
||||
import trezorlib
|
||||
|
||||
from trezorlib.client import TrezorClient as Client, PASSPHRASE_TEST_PATH
|
||||
from trezorlib.exceptions import TrezorFailure, PinException
|
||||
from trezorlib.transport import get_transport
|
||||
from trezorlib.messages import IdentityType
|
||||
|
||||
from trezorlib.btc import get_address, get_public_node
|
||||
from trezorlib.misc import sign_identity, get_ecdh_session_key
|
||||
from trezorlib.client import PASSPHRASE_TEST_PATH
|
||||
from trezorlib.client import TrezorClient as Client
|
||||
from trezorlib.exceptions import PinException, TrezorFailure
|
||||
from trezorlib.messages import IdentityType
|
||||
from trezorlib.misc import get_ecdh_session_key, sign_identity
|
||||
from trezorlib.transport import get_transport
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,12 +5,13 @@ import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
from .. import util
|
||||
|
||||
try:
|
||||
from trezorlib.client import PASSPHRASE_ON_DEVICE
|
||||
except ImportError:
|
||||
PASSPHRASE_ON_DEVICE = object()
|
||||
|
||||
from .. import util
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -21,9 +21,8 @@ import time
|
||||
import pkg_resources
|
||||
import semver
|
||||
|
||||
|
||||
from . import agent, client, encode, keyring, protocol
|
||||
from .. import device, formats, server, util
|
||||
from . import agent, client, encode, keyring, protocol
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import binascii
|
||||
import logging
|
||||
|
||||
from . import client, decode, keyring, protocol
|
||||
from .. import util
|
||||
from . import client, decode, keyring, protocol
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ import struct
|
||||
import ecdsa
|
||||
import nacl.signing
|
||||
|
||||
from . import protocol
|
||||
from .. import util
|
||||
from . import protocol
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
import io
|
||||
import logging
|
||||
|
||||
from . import decode, keyring, protocol
|
||||
from .. import util
|
||||
from . import decode, keyring, protocol
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import base64
|
||||
import hashlib
|
||||
import logging
|
||||
import struct
|
||||
|
||||
import nacl.signing
|
||||
|
||||
from .. import formats, util
|
||||
|
||||
@@ -4,8 +4,8 @@ import os
|
||||
|
||||
import pytest
|
||||
|
||||
from .. import decode, protocol
|
||||
from ... import util
|
||||
from .. import decode, protocol
|
||||
|
||||
|
||||
def test_subpackets():
|
||||
|
||||
@@ -2,8 +2,8 @@ import ecdsa
|
||||
import nacl.signing
|
||||
import pytest
|
||||
|
||||
from .. import protocol
|
||||
from ... import formats
|
||||
from .. import protocol
|
||||
|
||||
|
||||
def test_packet():
|
||||
|
||||
@@ -16,7 +16,6 @@ import time
|
||||
import pkg_resources
|
||||
import semver
|
||||
|
||||
|
||||
from .. import formats, server, util
|
||||
from ..device import interface, ui
|
||||
|
||||
|
||||
@@ -11,9 +11,9 @@ import sys
|
||||
import tempfile
|
||||
import threading
|
||||
|
||||
import pkg_resources
|
||||
import configargparse
|
||||
import daemon
|
||||
import pkg_resources
|
||||
|
||||
from .. import device, formats, server, util
|
||||
from . import client, protocol
|
||||
|
||||
Reference in New Issue
Block a user