Ruff: propgate config from OP (#1579)

This commit is contained in:
Justin Newberry
2023-08-14 12:52:02 -07:00
committed by GitHub
parent 05295dc42a
commit 4ea50fbb09
22 changed files with 30 additions and 60 deletions

View File

@@ -409,7 +409,7 @@ class Panda:
return usb_handle, usb_serial, bootstub, bcd
@classmethod
def list(cls):
def list(cls): # noqa: A003
ret = cls.usb_list()
ret += cls.spi_list()
return list(set(ret))

View File

@@ -59,7 +59,7 @@ class PandaDFU:
return handle
@staticmethod
def list() -> List[str]:
def list() -> List[str]: # noqa: A003
ret = PandaDFU.usb_list()
ret += PandaDFU.spi_list()
return list(set(ret))

View File

@@ -8,7 +8,7 @@ class PandaSerial(object):
self.panda.set_uart_baud(self.port, baud)
self.buf = b""
def read(self, l=1): # noqa: E741
def read(self, l=1):
tt = self.panda.serial_read(self.port)
if len(tt) > 0:
self.buf += tt