Skip to content

Commit 56239b0

Browse files
committed
Linting updates
1 parent 60ba1f4 commit 56239b0

19 files changed

+3
-236
lines changed
File renamed without changes.

Introducing_Gemma_M0/Default Files/.Trashes

Whitespace-only changes.

Introducing_Gemma_M0/Default Files/.fseventsd/no_log

Whitespace-only changes.

Introducing_Gemma_M0/Default Files/.metadata_never_index

Whitespace-only changes.

Introducing_Gemma_M0/Default Files/README.txt

-39
This file was deleted.

Introducing_Gemma_M0/Default Files/Windows 7 Driver/Adafruit_Gemma_M0.inf

-115
This file was deleted.

Introducing_Gemma_M0/Default Files/Windows 7 Driver/README.txt

-2
This file was deleted.
Binary file not shown.

Introducing_Gemma_M0/Default Files/boot_out.txt

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Introducing_Gemma_M0/Default Files/main.py

-78
This file was deleted.

Introducing_Gemma_M0/defaultfiles.zip

19.5 KB
Binary file not shown.

SnowGlobe/main.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def fade_pixels(fade_color):
4141
fade_pixels(GREEN)
4242

4343

44+
# pylint: disable=too-many-locals
4445
def play_song(song_number):
4546
# 1: Jingle bells
4647
# 2: Let It Snow
@@ -53,7 +54,7 @@ def play_song(song_number):
5354
dotted_quarter_note = quarter_note * 1.5
5455
eighth_note = whole_note / 8
5556

56-
# pylint: disable=unused-variables
57+
# pylint: disable=unused-variable
5758
# set up note values
5859
A3 = 220
5960
Bb3 = 233
@@ -86,7 +87,7 @@ def play_song(song_number):
8687
[D4, eighth_note],
8788
[E4, whole_note],
8889
]
89-
90+
# pylint: disable=consider-using-enumerate
9091
for n in range(len(jingle_bells_song)):
9192
cpx.start_tone(jingle_bells_song[n][0])
9293
time.sleep(jingle_bells_song[n][1])

0 commit comments

Comments
 (0)