Skip to content

Commit b8a6012

Browse files
committed
belint
1 parent 64c4fdb commit b8a6012

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Propmaker_Master_Sword/code.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def play_wav(name, loop=False):
6969
:param loop: if True, sound will repeat indefinitely (until interrupted
7070
by another sound).
7171
"""
72-
global wave_file
72+
global wave_file # pylint: disable=global-statement
7373
print("playing", name)
7474
if wave_file:
7575
wave_file.close()
@@ -174,7 +174,8 @@ def mix(color_1, color_2, weight_2):
174174
elif mode == 1:
175175
# Idle pulse
176176
idle_brightness += idle_increment # Pulse up
177-
if idle_brightness > IDLE_PULSE_BRIGHTNESS_MAX or idle_brightness < IDLE_PULSE_BRIGHTNESS_MIN: # Then...
177+
if idle_brightness > IDLE_PULSE_BRIGHTNESS_MAX or \
178+
idle_brightness < IDLE_PULSE_BRIGHTNESS_MIN: # Then...
178179
idle_increment *= -1 # Pulse direction flip
179180
strip.fill([int(c*idle_brightness) for c in COLOR_IDLE])
180181
strip.show()
@@ -188,4 +189,4 @@ def mix(color_1, color_2, weight_2):
188189
strip.show()
189190
else: # No sound now, but still SWING or HIT modes
190191
play_wav('idle', loop=True) # Resume idle sound
191-
mode = 1 # Return to idle mode
192+
mode = 1 # Return to idle mode

0 commit comments

Comments
 (0)