mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
pre-commit: autoupdate hooks (#1789)
* Update pre-commit hook versions * fix --------- Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
This commit is contained in:
@@ -15,6 +15,6 @@ repos:
|
||||
additional_dependencies: ['git+https://github.com/numpy/numpy-stubs', 'types-requests', 'types-atomicwrites',
|
||||
'types-pycurl']
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
rev: v0.1.9
|
||||
rev: v0.1.13
|
||||
hooks:
|
||||
- id: ruff
|
||||
|
||||
@@ -388,7 +388,7 @@ class Panda:
|
||||
return context, usb_handle, usb_serial, bootstub, bcd
|
||||
|
||||
@classmethod
|
||||
def list(cls): # noqa: A003
|
||||
def list(cls):
|
||||
ret = cls.usb_list()
|
||||
ret += cls.spi_list()
|
||||
return list(set(ret))
|
||||
|
||||
@@ -72,7 +72,7 @@ class PandaDFU:
|
||||
return None, handle
|
||||
|
||||
@staticmethod
|
||||
def list() -> List[str]: # noqa: A003
|
||||
def list() -> List[str]:
|
||||
ret = PandaDFU.usb_list()
|
||||
ret += PandaDFU.spi_list()
|
||||
return list(set(ret))
|
||||
|
||||
Reference in New Issue
Block a user