Skip to content

Commit 1140602

Browse files
committed
Linted
1 parent 26361b7 commit 1140602

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • BLE_Client_Server/client
  • MagTag_Google_Sheets/naughty_nice
  • Make_It_Sense/cpx-ir-decode

BLE_Client_Server/client/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
c = color.pack()
7575
pixels[0] = c
7676
pixels.show()
77-
if color_index == 0 or color_index == 28:
77+
if color_index in (0, 28):
7878
fade_direction *= -1 # Change direction
7979
color_index += fade_direction
8080

MagTag_Google_Sheets/naughty_nice/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def hh_mm(time_struct, twelve_hour=True):
105105
# though they still must have a "Naughty" or "Nice" heading at top.
106106
for entry in ENTRIES:
107107
cell = entry['gs$cell']
108-
if int(cell['row']) is 1: # Only look at top row
108+
if int(cell['row']) == 1: # Only look at top row
109109
head = cell['$t'].lower() # Case-insensitive compare
110110
if ((NICE and head == 'nice') or (not NICE and head == 'naughty')):
111111
NAME_COLUMN = int(cell['col'])

Make_It_Sense/cpx-ir-decode/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@
9696
pixels[9] = (0, 30, 0)
9797
elif command == 207:
9898
pixels[0] = (0, 30, 0)
99-
elif command == 111 or command == 143:
99+
elif command in (111, 143):
100100
pixels.fill((0, 0, 0)) # clear on enter or back key

0 commit comments

Comments
 (0)