Skip to content

Commit 89b31c1

Browse files
committed
Letting pre-commit format files because it doesn't like black
1 parent 7718d0b commit 89b31c1

File tree

4 files changed

+4
-17
lines changed

4 files changed

+4
-17
lines changed

adafruit_matrixportal/graphics.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,7 @@ def set_background(self, file_or_color, position=None):
113113
color_palette = displayio.Palette(1)
114114
color_palette[0] = file_or_color
115115
self._bg_sprite = displayio.TileGrid(
116-
color_bitmap,
117-
pixel_shader=color_palette,
118-
x=position[0],
119-
y=position[1],
116+
color_bitmap, pixel_shader=color_palette, x=position[0], y=position[1],
120117
)
121118
else:
122119
raise RuntimeError("Unknown type of background")

adafruit_matrixportal/network.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -401,13 +401,7 @@ def fetch(self, url, *, headers=None, timeout=10):
401401
return response
402402

403403
def fetch_data(
404-
self,
405-
url,
406-
*,
407-
headers=None,
408-
json_path=None,
409-
regexp_path=None,
410-
timeout=10,
404+
self, url, *, headers=None, json_path=None, regexp_path=None, timeout=10,
411405
):
412406
"""Fetch data from the specified url and perfom any parsing"""
413407
json_out = None

examples/matrixportal_scrolling_bitcoin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def text_transform(val):
3030
cwd = ("/" + __file__).rsplit("/", 1)[0]
3131

3232
matrixportal = MatrixPortal(
33-
url=DATA_SOURCE,
34-
json_path=DATA_LOCATION,
35-
status_neopixel=board.NEOPIXEL,
33+
url=DATA_SOURCE, json_path=DATA_LOCATION, status_neopixel=board.NEOPIXEL,
3634
)
3735

3836
matrixportal.add_text(

examples/matrixportal_simpletest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def text_transform(val):
3030
cwd = ("/" + __file__).rsplit("/", 1)[0]
3131

3232
matrixportal = MatrixPortal(
33-
url=DATA_SOURCE,
34-
json_path=DATA_LOCATION,
35-
status_neopixel=board.NEOPIXEL,
33+
url=DATA_SOURCE, json_path=DATA_LOCATION, status_neopixel=board.NEOPIXEL,
3634
)
3735

3836
matrixportal.add_text(

0 commit comments

Comments
 (0)