Skip to content

Commit 61f70bc

Browse files
committed
Linted
1 parent 0c7a3ed commit 61f70bc

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

Matrix_Portal_Flow_Viewer/flow/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def show_singularities():
109109
try:
110110
x, y = s[1]
111111
bitmap[round(x), round(y)] = 1
112-
except:
112+
except: # pylint: disable=bare-except
113113
pass # just don't draw it
114114

115115
def show_streamlines():
@@ -125,7 +125,7 @@ def show_streamlines():
125125
bitmap[round(x), round(y)] = 3
126126
# draw head
127127
bitmap[round(x), round(y)] = 2
128-
except:
128+
except: # pylint: disable=bare-except
129129
pass # just don't draw it
130130

131131
def animate_streamlines():

Matrix_Portal_Flow_Viewer/flow_viewer/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def show_solids():
102102
try:
103103
x, y = s
104104
bitmap[round(x), round(y)] = 1
105-
except:
105+
except: # pylint: disable=bare-except
106106
pass # just don't draw it
107107

108108
def show_streamlines():
@@ -118,7 +118,7 @@ def show_streamlines():
118118
bitmap[round(x), round(y)] = 3
119119
# draw head
120120
bitmap[round(x), round(y)] = 2
121-
except:
121+
except: # pylint: disable=bare-except
122122
pass # just don't draw it
123123

124124
def animate_streamlines():

PyPortal_EZ_Make_Oven/codecalibrate/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import time
2+
import sys
23
import board
34
import busio
45
import digitalio
5-
import sys
66
from adafruit_mcp9600 import MCP9600
77

88
SENSOR_ADDR = 0X67

Smart_Alarm_Clock/button/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def message(client, feed_id, payload):
6767

6868

6969
def on_alarm(client, feed_id, payload):
70-
global ALARM
70+
global ALARM # pylint: disable=global-statement
7171
print(payload)
72-
ALARM = eval(payload)
72+
ALARM = eval(payload) # pylint: disable=eval-used
7373

7474

7575
# Create a socket pool

0 commit comments

Comments
 (0)