Update Python packages and pre-commit hooks (#31003)

* Update Python packages and pre-commit hooks

* fix

---------

Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
old-commit-hash: a8afaf39d4
This commit is contained in:
Adeeb Shihadeh 2024-01-15 10:34:25 -08:00 committed by GitHub
parent 95e234b724
commit e9e1d4559b
4 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ repos:
- --explicit-package-bases
exclude: '^(third_party/)|(cereal/)|(opendbc/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)|(xx/)'
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.1.13
hooks:
- id: ruff
exclude: '^(third_party/)|(cereal/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)'

View File

@ -65,7 +65,7 @@ class SwagFormatter(logging.Formatter):
return record_dict
def format(self, record): # noqa: A003
def format(self, record):
if self.swaglogger is None:
raise Exception("must set swaglogger before calling format()")
return json_robust_dumps(self.format_dict(record))
@ -95,7 +95,7 @@ class SwagLogFileFormatter(SwagFormatter):
k += "$a"
return k, v
def format(self, record): # noqa: A003
def format(self, record):
if isinstance(record, str):
v = json.loads(record)
else:

4
poetry.lock generated
View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:12a2e36353100de249c54d3afdb561e7166a399fb932d9792ef535eacacb4537
size 428672
oid sha256:651131cdd9a837095d5f382f828a3b5c1a6677eed8750ce4602e894648d98db4
size 433300

View File

@ -79,7 +79,7 @@ class UploadItem:
url: str
headers: Dict[str, str]
created_at: int
id: Optional[str] # noqa: A003 (to match the response from the remote server)
id: Optional[str]
retry_count: int = 0
current: bool = False
progress: float = 0