Skip to content

Commit efd7416

Browse files
committed
tree-wide: poetry run isort
1 parent 73f2ae9 commit efd7416

File tree

17 files changed

+20
-16
lines changed

17 files changed

+20
-16
lines changed

demo/multidemo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from pybricks.hubs import ThisHub
22
from pybricks.parameters import Color
33
from pybricks.tools import wait
4+
45
from module2 import nice_color
56

67
hub = ThisHub()

pybricksdev/_vendored/dfu_create.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88

99
# This file was originally copied from micropython/tools/dfu.py
1010

11-
from optparse import OptionParser
1211
import os
1312
import struct
1413
import sys
1514
import zlib
15+
from optparse import OptionParser
1616

1717
DEFAULT_DEVICE = "0x0483:0xdf11"
1818

pybricksdev/_vendored/dfu_upload.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
import re
2424
import struct
2525
import sys
26+
import zlib
27+
2628
import usb.core
2729
import usb.util
28-
import zlib
2930

3031
# VID/PID
3132
__VID = 0x0483

pybricksdev/_vendored/pynxt/flash.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Copyright 2006 David Anderson <[email protected]>
33

44
import math
5-
65
from importlib.resources import read_binary
76

87
from . import resources

pybricksdev/_vendored/pynxt/lowlevel.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
# Copyright 2006 David Anderson <[email protected]>
33

4-
import usb
54
import time
65

6+
import usb
7+
78
USB_BULK_OUT_EP = 0x1
89
USB_BULK_IN_EP = 0x82
910

pybricksdev/_vendored/pynxt/samba.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Copyright 2006 David Anderson <[email protected]>
33

44
import struct
5+
56
from . import lowlevel
67

78
ATMEL_VENDOR_ID = 0x03EB

pybricksdev/ble/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import logging
66
from typing import Optional
77

8-
from bleak import BleakScanner, BleakClient
8+
from bleak import BleakClient, BleakScanner
99
from bleak.backends.device import BLEDevice
1010
from bleak.backends.scanner import AdvertisementData
1111

pybricksdev/ble/lwp3/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
from enum import IntEnum
1616
from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Type, Union, overload
1717

18+
from ...tools.checksum import xor_bytes
1819
from .bytecodes import (
19-
Feedback,
2020
MAX_NAME_SIZE,
2121
AlertKind,
2222
AlertOperation,
@@ -26,6 +26,7 @@
2626
DataFormat,
2727
EndInfo,
2828
ErrorCode,
29+
Feedback,
2930
HubAction,
3031
HubKind,
3132
HubProperty,
@@ -51,7 +52,6 @@
5152
Version,
5253
VirtualPortSetupCommand,
5354
)
54-
from ...tools.checksum import xor_bytes
5555

5656

5757
class AbstractMessage(abc.ABC):

pybricksdev/cli/flash.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ async def flash_nxt(firmware: bytes) -> None:
332332
firmware:
333333
A firmware blob with the NxOS header appended to the end.
334334
"""
335-
from .._vendored.pynxt.samba import SambaBrick, SambaOpenError
336335
from .._vendored.pynxt.firmware import Firmware
337336
from .._vendored.pynxt.flash import FlashController
337+
from .._vendored.pynxt.samba import SambaBrick, SambaOpenError
338338

339339
# parse the header
340340
info = Firmware(firmware)

pybricksdev/cli/lwp3/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
"""
88

99
import asyncio
10-
from enum import Enum
1110
import inspect
1211
import logging
1312
import os
1413
import re
1514
import struct
15+
from enum import Enum
1616
from pathlib import Path
1717

1818
from appdirs import user_cache_dir

0 commit comments

Comments
 (0)