Skip to content

Commit eb6957f

Browse files
committed
Run pre-commit
1 parent 0cecef1 commit eb6957f

File tree

6 files changed

+3
-6
lines changed

6 files changed

+3
-6
lines changed

adafruit_display_shapes/multisparkline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def __init__(
147147
# updated if autorange
148148
self._palette = displayio.Palette(self._lines + 1)
149149
self._palette.make_transparent(0)
150-
for (i, color) in enumerate(colors):
150+
for i, color in enumerate(colors):
151151
self._palette[i + 1] = color
152152
self._bitmap = displayio.Bitmap(width, height, self._lines + 1)
153153

@@ -172,7 +172,7 @@ def add_values(self, values: List[float], update: bool = True) -> None:
172172
call the update()-method
173173
"""
174174

175-
for (i, value) in enumerate(values):
175+
for i, value in enumerate(values):
176176
if value is not None:
177177
top = self.y_tops[i]
178178
bottom = self.y_bottoms[i]

adafruit_display_shapes/triangle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class Triangle(Polygon):
4747
:param int|None outline: The outline of the triangle. Can be a hex value for a color or
4848
``None`` for no outline.
4949
"""
50+
5051
# pylint: disable=too-many-locals
5152
def __init__(
5253
self,

examples/display_shapes_circle_animation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
display.show(main_group)
4444

4545
while True:
46-
4746
if circle.y + circle_radius >= display.height - circle_radius:
4847
delta_y = -1
4948
if circle.x + circle_radius >= display.width - circle_radius:

examples/display_shapes_sparkline_simpletest.py

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

122122
# Start the main loop
123123
while True:
124-
125124
# turn off the auto_refresh of the display while modifying the sparkline
126125
display.auto_refresh = False
127126

examples/display_shapes_sparkline_ticks.py

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

176176
# Start the main loop
177177
while True:
178-
179178
# Turn off auto_refresh to prevent partial updates of the screen during updates
180179
# of the sparkline drawing
181180
display.auto_refresh = False

examples/display_shapes_sparkline_triple.py

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

226226
# Start the main loop
227227
while True:
228-
229228
# Turn off auto_refresh to prevent partial updates of the screen during updates
230229
# of the sparklines
231230
display.auto_refresh = False

0 commit comments

Comments
 (0)