Skip to content

Commit 4078fee

Browse files
committed
linting sms project
1 parent 92633f7 commit 4078fee

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

Matrix_Portal_S3_SMS_Scroller/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# avoids repeating the same quote twice in a row
1010

1111
import time
12-
import board
1312
import random
1413
from collections import deque
14+
import board
1515
from adafruit_matrixportal.matrix import Matrix
1616
from adafruit_matrixportal.network import Network
1717
from messageboard import MessageBoard
@@ -76,8 +76,8 @@ def update_data():
7676

7777
# Results are returned in reverse order, so we reverse that and add to end of queue
7878
messages.reverse()
79-
for message in messages:
80-
message_queue.append(message)
79+
for m in messages:
80+
message_queue.append(m)
8181

8282
# Remove any messages that have been grabbed except the latest one if setting enabled
8383
start_index = 1 if KEEP_LATEST_MESSAGE else 0

Matrix_Portal_S3_SMS_Scroller/lib/messageboard/animations/scroll.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,15 @@ def out_to_bottom(self, message, duration=1):
171171
)
172172

173173
def right_to_left(self, message, duration=1):
174-
"""Scroll a message in from the right side of the display and then out the left side over a certain period of
175-
time. The final position is off-screen to the left.
174+
"""Scroll a message in from the right side of the display and then out the left side
175+
over a certain period of time. The final position is off-screen to the left.
176176
177177
:param message: The message to animate.
178178
:param float duration: (optional) The period of time to perform the animation
179179
over in seconds. (default=1)
180180
:type message: Message
181181
"""
182+
# pylint: disable=unused-variable
182183
center_x, center_y = self._get_centered_position(message)
183184
self.scroll_from_to(
184185
message, duration,

0 commit comments

Comments
 (0)