Browse Source

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 1 month ago
parent
commit
b54ac6e99e
3 changed files with 8 additions and 8 deletions
  1. +1
    -1
      test/test_messages.py
  2. +2
    -2
      test/test_strokes.py
  3. +5
    -5
      tools/raw-log-converter.py

+ 1
- 1
test/test_messages.py View File

@ -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])


+ 2
- 2
test/test_strokes.py View File

@ -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)


+ 5
- 5
tools/raw-log-converter.py View File

@ -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,


Loading…
Cancel
Save