From 0ae10a192499f8973a480a4b89134967a6284658 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 4 May 2019 22:42:12 +0200 Subject: [PATCH] legacy+storage: fix style checks --- setup.cfg | 1 + storage/tests/python/tests/test_norcow.py | 2 +- tools/style.py.exclude | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index c7f5cdead..de91c44fd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ line_length = 88 not_skip=__init__.py forced_separate = apps known_standard_library = micropython,ubinascii,ustruct,uctypes,utime,utimeq,trezorio,trezorui,trezorutils,trezorconfig +known_third_party = curve25519,ecdsa,hypothesis # TODO: ask matejcik if we can omit this completely # [tool:pytest] diff --git a/storage/tests/python/tests/test_norcow.py b/storage/tests/python/tests/test_norcow.py index 38b9369c8..78a6819c7 100644 --- a/storage/tests/python/tests/test_norcow.py +++ b/storage/tests/python/tests/test_norcow.py @@ -1,7 +1,7 @@ import pytest -from ..src import consts, norcow from . import common +from ..src import consts, norcow def test_norcow_set(): diff --git a/tools/style.py.exclude b/tools/style.py.exclude index fa02c7629..911cb3b31 100644 --- a/tools/style.py.exclude +++ b/tools/style.py.exclude @@ -1,2 +1,3 @@ ^\./legacy/firmware/protob/messages_pb2\.py +^\./legacy/firmware/protob/messages_nem_pb2\.py ^\./legacy/vendor