Fix flake8 errors - module import not at top of the file

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/271/head
Peter Hutterer 2021-01-22 16:41:40 +10:00
parent 27164aba52
commit b54ac6e99e
3 changed files with 8 additions and 8 deletions

View File

@ -25,7 +25,7 @@ import time
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa
from tuhi.protocol import * from tuhi.protocol import * # noqa
SUCCESS = NordicData([0xb3, 0x1, 0x00]) SUCCESS = NordicData([0xb3, 0x1, 0x00])

View File

@ -27,8 +27,8 @@ import logging
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa
from tuhi.protocol import * from tuhi.protocol import * # noqa
from tuhi.util import flatten from tuhi.util import flatten # noqa
logger = logging.getLogger('tuhi') # piggyback the debug messages logger = logging.getLogger('tuhi') # piggyback the debug messages
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)

View File

@ -28,11 +28,11 @@ import logging
# This tool isn't installed, so we can assume that the tuhi module is always # This tool isn't installed, so we can assume that the tuhi module is always
# in the parent directory # in the parent directory
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa
from tuhi.util import flatten from tuhi.util import flatten # noqa
from tuhi.drawing import Drawing from tuhi.drawing import Drawing # noqa
from tuhi.protocol import StrokeFile from tuhi.protocol import StrokeFile # noqa
from tuhi.export import JsonSvg, JsonPng from tuhi.export import JsonSvg, JsonPng # noqa
from tuhi.wacom import WacomProtocolSpark, WacomProtocolIntuosPro, WacomProtocolSlate from tuhi.wacom import WacomProtocolSpark, WacomProtocolIntuosPro, WacomProtocolSlate # noqa
logging.basicConfig(format='%(asctime)s %(levelname)s: %(name)s: %(message)s', logging.basicConfig(format='%(asctime)s %(levelname)s: %(name)s: %(message)s',
level=logging.INFO, level=logging.INFO,