diff --git a/Matrix_Portal_Flow_Viewer/flow/code.py b/Matrix_Portal_Flow_Viewer/flow/code.py index 419956986..b48b937d3 100755 --- a/Matrix_Portal_Flow_Viewer/flow/code.py +++ b/Matrix_Portal_Flow_Viewer/flow/code.py @@ -109,7 +109,7 @@ def show_singularities(): try: x, y = s[1] bitmap[round(x), round(y)] = 1 - except: + except: # pylint: disable=bare-except pass # just don't draw it def show_streamlines(): @@ -125,7 +125,7 @@ def show_streamlines(): bitmap[round(x), round(y)] = 3 # draw head bitmap[round(x), round(y)] = 2 - except: + except: # pylint: disable=bare-except pass # just don't draw it def animate_streamlines(): diff --git a/Matrix_Portal_Flow_Viewer/flow_viewer/code.py b/Matrix_Portal_Flow_Viewer/flow_viewer/code.py index f019dcb02..7bd29abd7 100755 --- a/Matrix_Portal_Flow_Viewer/flow_viewer/code.py +++ b/Matrix_Portal_Flow_Viewer/flow_viewer/code.py @@ -102,7 +102,7 @@ def show_solids(): try: x, y = s bitmap[round(x), round(y)] = 1 - except: + except: # pylint: disable=bare-except pass # just don't draw it def show_streamlines(): @@ -118,7 +118,7 @@ def show_streamlines(): bitmap[round(x), round(y)] = 3 # draw head bitmap[round(x), round(y)] = 2 - except: + except: # pylint: disable=bare-except pass # just don't draw it def animate_streamlines(): diff --git a/PyPortal_EZ_Make_Oven/codecalibrate/code.py b/PyPortal_EZ_Make_Oven/codecalibrate/code.py index 55c2e9d03..d29c4e01d 100644 --- a/PyPortal_EZ_Make_Oven/codecalibrate/code.py +++ b/PyPortal_EZ_Make_Oven/codecalibrate/code.py @@ -1,8 +1,8 @@ import time +import sys import board import busio import digitalio -import sys from adafruit_mcp9600 import MCP9600 SENSOR_ADDR = 0X67 diff --git a/Smart_Alarm_Clock/button/code.py b/Smart_Alarm_Clock/button/code.py index dc41d9c19..4ad8f1e56 100644 --- a/Smart_Alarm_Clock/button/code.py +++ b/Smart_Alarm_Clock/button/code.py @@ -67,9 +67,9 @@ def message(client, feed_id, payload): def on_alarm(client, feed_id, payload): - global ALARM + global ALARM # pylint: disable=global-statement print(payload) - ALARM = eval(payload) + ALARM = eval(payload) # pylint: disable=eval-used # Create a socket pool