From b54ac6e99ebbde84cc1655c4b6f4b02d64ad1b2c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 22 Jan 2021 16:41:40 +1000 Subject: [PATCH] Fix flake8 errors - module import not at top of the file Signed-off-by: Peter Hutterer --- test/test_messages.py | 2 +- test/test_strokes.py | 4 ++-- tools/raw-log-converter.py | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/test/test_messages.py b/test/test_messages.py index ea2831e..fdadc2d 100755 --- a/test/test_messages.py +++ b/test/test_messages.py @@ -25,7 +25,7 @@ import time 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]) diff --git a/test/test_strokes.py b/test/test_strokes.py index b44d4a6..7350a56 100755 --- a/test/test_strokes.py +++ b/test/test_strokes.py @@ -27,8 +27,8 @@ import logging sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa -from tuhi.protocol import * -from tuhi.util import flatten +from tuhi.protocol import * # noqa +from tuhi.util import flatten # noqa logger = logging.getLogger('tuhi') # piggyback the debug messages logger.setLevel(logging.DEBUG) diff --git a/tools/raw-log-converter.py b/tools/raw-log-converter.py index 4389583..1ec9777 100755 --- a/tools/raw-log-converter.py +++ b/tools/raw-log-converter.py @@ -28,11 +28,11 @@ import logging # This tool isn't installed, so we can assume that the tuhi module is always # in the parent directory sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)) + '/..') # noqa -from tuhi.util import flatten -from tuhi.drawing import Drawing -from tuhi.protocol import StrokeFile -from tuhi.export import JsonSvg, JsonPng -from tuhi.wacom import WacomProtocolSpark, WacomProtocolIntuosPro, WacomProtocolSlate +from tuhi.util import flatten # noqa +from tuhi.drawing import Drawing # noqa +from tuhi.protocol import StrokeFile # noqa +from tuhi.export import JsonSvg, JsonPng # noqa +from tuhi.wacom import WacomProtocolSpark, WacomProtocolIntuosPro, WacomProtocolSlate # noqa logging.basicConfig(format='%(asctime)s %(levelname)s: %(name)s: %(message)s', level=logging.INFO,