Skip to content

Commit 2f28ad5

Browse files
committed
QA: Apply isort suggestions.
1 parent ecc7352 commit 2f28ad5

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

examples/bargraph.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env python
22

3-
from icm20948 import ICM20948
4-
import time
5-
import math
63
import argparse
4+
import math
75
import os
86
import signal
97
import sys
8+
import time
9+
10+
from icm20948 import ICM20948
1011

1112
BAR_CHAR = u'\u2588' # Unicode FULL BLOCK
1213

examples/magnetometer-to-rgb5x5.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
#!/usr/bin/env python
22

3-
from icm20948 import ICM20948
4-
from rgbmatrix5x5 import RGBMatrix5x5
5-
from colorsys import hsv_to_rgb
6-
import time
73
import math
4+
import time
5+
from colorsys import hsv_to_rgb
6+
7+
from rgbmatrix5x5 import RGBMatrix5x5
8+
9+
from icm20948 import ICM20948
810

911
print("""magnetometer-to-rgb5x5.py - Convert heading to colour
1012

examples/magnetometer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/usr/bin/env python
22

3-
from icm20948 import ICM20948
4-
import time
53
import math
4+
import time
5+
6+
from icm20948 import ICM20948
67

78
print("""magnetometer.py - Convert raw values to heading
89

examples/read-all.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22

33
import time
4+
45
from icm20948 import ICM20948
56

67
print("""read-all.py

icm20948/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import time
21
import struct
2+
import time
33

44
__version__ = '0.0.2'
55

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
23
import mock
34
import pytest
45

0 commit comments

Comments
 (0)