Skip to content

Commit

Permalink
Fix E402 suppressions in connection with isort
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Dec 20, 2022
1 parent e3caf4e commit 7295e35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions scripts/build/build/test_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
import sys
import unittest

from build.target import BuildTarget, TargetPart # noqa: E402

sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from build.target import BuildTarget, TargetPart # noqa: E402 isort:skip


class FakeBuilder:
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/generate_esp32_chip_factory_bin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
import cryptography.x509
from bitarray import bitarray
from bitarray.util import ba2int
from spake2p import generate_verifier # noqa: E402

CHIP_TOPDIR = os.path.dirname(os.path.realpath(__file__))[:-len(os.path.join('scripts', 'tools'))]
sys.path.insert(0, os.path.join(CHIP_TOPDIR, 'scripts', 'tools', 'spake2p'))
from spake2p import generate_verifier # noqa: E402 isort:skip

if os.getenv('IDF_PATH'):
sys.path.insert(0, os.path.join(os.getenv('IDF_PATH'),
Expand Down
3 changes: 1 addition & 2 deletions src/app/ota_image_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@
import sys
from enum import IntEnum

from chip.tlv import TLVReader, TLVWriter, uint # noqa: E402

sys.path.insert(0, os.path.join(
os.path.dirname(__file__), '../controller/python'))
from chip.tlv import TLVReader, TLVWriter, uint # noqa: E402 isort:skip

HEADER_MAGIC = 0x1BEEF11E
FIXED_HEADER_FORMAT = '<IQI'
Expand Down

0 comments on commit 7295e35

Please sign in to comment.