Make pylint more strict (#1626)

* make pylint more strict

* cleanup in progress

* done cleaning up

* no opendbc
old-commit-hash: 843a64c72f
This commit is contained in:
Willem Melching
2020-06-02 16:29:32 -07:00
committed by GitHub
parent a03da046c3
commit a56e2b01f8
65 changed files with 313 additions and 359 deletions
+9 -2
View File
@@ -47,7 +47,10 @@ def get_H():
class Localizer():
def __init__(self, disabled_logs=[], dog=None):
def __init__(self, disabled_logs=None, dog=None):
if disabled_logs is None:
disabled_logs = []
self.kf = LiveKalman(GENERATED_DIR)
self.reset_kalman()
self.max_age = .2 # seconds
@@ -279,7 +282,11 @@ class Localizer():
self.speed_counter = 0
self.cam_counter = 0
def locationd_thread(sm, pm, disabled_logs=[]):
def locationd_thread(sm, pm, disabled_logs=None):
if disabled_logs is None:
disabled_logs = []
if sm is None:
socks = ['gpsLocationExternal', 'sensorEvents', 'cameraOdometry', 'liveCalibration', 'carState']
sm = messaging.SubMaster(socks, ignore_alive=['gpsLocationExternal'])