Skip to content

Commit 31b27eb

Browse files
committed
QA: Apply isort suggestions.
1 parent 4699a67 commit 31b27eb

File tree

5 files changed

+10
-4
lines changed

5 files changed

+10
-4
lines changed

as7262/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""Library for the AS7262 Visble Light Spectral Sensor."""
2-
import time
32
import struct
3+
import time
44

5-
from i2cdevice import Device, Register, BitField, _int_to_bytes
5+
from i2cdevice import BitField, Device, Register, _int_to_bytes
66
from i2cdevice.adapter import Adapter, LookupAdapter
77

88
__version__ = '0.1.0'

examples/bargraph.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import time
21
import os
32
import sys
3+
import time
4+
45
from as7262 import AS7262
56

67
as7262 = AS7262()

tests/test_features.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# noqa D100
22
import sys
3+
34
import mock
4-
from .tools import SMBusFakeAS7262, CALIBRATED_VALUES
5+
6+
from .tools import CALIBRATED_VALUES, SMBusFakeAS7262
57

68

79
def _setup():

tests/test_setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# noqa D100
22
import sys
3+
34
import mock # noqa: E402
5+
46
from .tools import SMBusFakeAS7262 # noqa: E402
57

68

tests/tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Test tools for the AS7262 sensor."""
22
import struct
3+
34
from i2cdevice import MockSMBus
45

56
CALIBRATED_VALUES = [1.1, 2.2, 3.3, 4.4, 5.5, 6.6]

0 commit comments

Comments
 (0)