Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent 0cecef1 commit eb6957f
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions adafruit_display_shapes/multisparkline.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def __init__(
# updated if autorange
self._palette = displayio.Palette(self._lines + 1)
self._palette.make_transparent(0)
for (i, color) in enumerate(colors):
for i, color in enumerate(colors):
self._palette[i + 1] = color
self._bitmap = displayio.Bitmap(width, height, self._lines + 1)

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

for (i, value) in enumerate(values):
for i, value in enumerate(values):
if value is not None:
top = self.y_tops[i]
bottom = self.y_bottoms[i]
Expand Down
1 change: 1 addition & 0 deletions adafruit_display_shapes/triangle.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class Triangle(Polygon):
:param int|None outline: The outline of the triangle. Can be a hex value for a color or
``None`` for no outline.
"""

# pylint: disable=too-many-locals
def __init__(
self,
Expand Down
1 change: 0 additions & 1 deletion examples/display_shapes_circle_animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
display.show(main_group)

while True:

if circle.y + circle_radius >= display.height - circle_radius:
delta_y = -1
if circle.x + circle_radius >= display.width - circle_radius:
Expand Down
1 change: 0 additions & 1 deletion examples/display_shapes_sparkline_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@

# Start the main loop
while True:

# turn off the auto_refresh of the display while modifying the sparkline
display.auto_refresh = False

Expand Down
1 change: 0 additions & 1 deletion examples/display_shapes_sparkline_ticks.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@

# Start the main loop
while True:

# Turn off auto_refresh to prevent partial updates of the screen during updates
# of the sparkline drawing
display.auto_refresh = False
Expand Down
1 change: 0 additions & 1 deletion examples/display_shapes_sparkline_triple.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,6 @@

# Start the main loop
while True:

# Turn off auto_refresh to prevent partial updates of the screen during updates
# of the sparklines
display.auto_refresh = False
Expand Down

0 comments on commit eb6957f

Please sign in to comment.