Skip to content

Commit 89f346b

Browse files
committed
QA: Apply isort suggestions.
1 parent 1411204 commit 89f346b

21 files changed

+20
-28
lines changed

blinkt/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
import time
44

55
import gpiod
6-
76
from gpiod.line import Direction, Value
87

9-
108
__version__ = '0.1.2'
119

1210
DAT = 23

examples/anvil-colour-control.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
# hit the "Run" button at the top to start remote-controlling
1717
# your Blinkt!
1818

19-
import blinkt
19+
import anvil.server
20+
from anvil.app_creator import create_app
2021
from colour import Color
2122

22-
from anvil.app_creator import create_app
23-
import anvil.server
23+
import blinkt
2424

2525
# Create the Blinkt demo app in your Anvil account
2626
app = create_app("blinkt")

examples/binary_clock_meld.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import blinkt
66

7-
87
print('Hour = Red, Minute = Green, Second = Blue')
98

109
blinkt.set_clear_on_exit()

examples/blinkt_thermo.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# Data from OpenWeatherMap
44
# show_graph function adapted from cpu_temp.py
55

6-
from time import sleep
76
from sys import exit
7+
from time import sleep
88

99
try:
1010
import requests
@@ -13,7 +13,6 @@
1313

1414
import blinkt
1515

16-
1716
# Grab your API key here: http://openweathermap.org
1817
# List of city ID city.list.json.gz can be downloaded here http://bulk.openweathermap.org/sample/
1918
API_KEY = ''

examples/candle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import blinkt
1313

14-
1514
blinkt.clear()
1615
start = 0
1716
end = 60

examples/extra_examples/drum_hits.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import blinkt
1919

20-
2120
DRUM_FOLDER = 'drums2'
2221

2322
BANK = os.path.join(os.path.dirname(__file__), DRUM_FOLDER)

examples/extra_examples/spirit_level.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
import blinkt
1212

13-
1413
x_avg = []
1514

1615
while True:

examples/eyedropper.py

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

3-
from PIL import ImageGrab
3+
import time
4+
45
import pyautogui
6+
from PIL import ImageGrab
7+
58
import blinkt
6-
import time
79

810
print('Press Ctrl-C to quit.')
911

examples/graph.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import blinkt
77

8-
98
blinkt.set_clear_on_exit()
109

1110

examples/kitt.py

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

3-
import time # so we can wait between frames
4-
import blinkt # so we can talk to our blinkt lights!
3+
import time # so we can wait between frames
4+
5+
import blinkt # so we can talk to our blinkt lights!
56

67
BRIGHTNESS = 0.2 # range is 0.0 to 1.0
78
MAX_COLOUR = 255 # range is 0 to 255

0 commit comments

Comments
 (0)