Skip to content

Commit 21136ae

Browse files
committed
Run pre-commit
1 parent 41ce387 commit 21136ae

6 files changed

+2
-6
lines changed

adafruit_progressbar/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def __init__(
7878
margin_size: int = 1,
7979
value_range: Union[Tuple[int, int], Tuple[float, float]] = (0, 100),
8080
) -> None:
81-
8281
if value_range[0] >= value_range[1]:
8382
raise ValueError("The minimum value must be less than the maximum value")
8483

adafruit_progressbar/horizontalprogressbar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def __init__(
122122
margin_size: int = 1,
123123
direction: HorizontalFillDirection = HorizontalFillDirection.DEFAULT,
124124
) -> None:
125-
126125
# Store the "direction" value locally. While they may appear to
127126
# "relate" with the values of the vertical bar, their handling
128127
# is too different to be stored in the same underlying property,

adafruit_progressbar/progressbar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
__version__ = "0.0.0+auto.0"
2828
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar.git"
2929

30+
3031
# pylint: disable=too-many-arguments, too-few-public-methods
3132
class ProgressBar(HorizontalProgressBar):
3233
"""A dynamic progress bar widget.
@@ -64,7 +65,6 @@ def __init__(
6465
outline_color=0xFFFFFF,
6566
stroke: int = 1,
6667
) -> None:
67-
6868
# This needs to remain for backward compatibility, the default ProgressBar class
6969
# should only be able to handle values of type "float"
7070
if not isinstance(progress, float):

adafruit_progressbar/verticalprogressbar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
__version__ = "0.0.0+auto.0"
3232
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_ProgressBar.git"
3333

34+
3435
# pylint: disable=too-few-public-methods
3536
class VerticalFillDirection:
3637
"""This enum is used to specify the direction in which the progress

examples/progressbar_displayio_blinka.py

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

9090
# Must check display.running in the main loop!
9191
while display.running:
92-
9392
print("\nDemonstration of legacy functionality and syntax, increment by 0.01")
9493
for val in range(0, 101):
9594
if not display.running:

examples/progressbar_matrixportal.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,13 @@
155155

156156
print("Start forever loop")
157157
while True:
158-
159158
print("Setting progress bar value to", progress_bar_value)
160159

161160
progress_bar.value = progress_bar_value
162161
ranged_bar.value = progress_bar_value
163162
progress_bar_value += progress_bar_incr
164163

165164
if not (button1.value and button2.value):
166-
167165
if not button1.value: # "UP" button pushed
168166
print("UP button pressed. Increasing vertical bars by 3")
169167
vertical_bar.value = min(vertical_bar.maximum, vertical_bar.value + 3)

0 commit comments

Comments
 (0)