Skip to content

Commit

Permalink
[bot] Update Python packages and pre-commit hooks (commaai#32990)
Browse files Browse the repository at this point in the history
* Update Python packages and pre-commit hooks

* fix ruff

---------

Co-authored-by: Vehicle Researcher <[email protected]>
Co-authored-by: Maxime Desroches <[email protected]>
old-commit-hash: dd2787b
  • Loading branch information
3 people authored Jul 15, 2024
1 parent a11f57c commit daf3d15
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 102 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
- -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup,bumb,nd,sie,preints,whit,indexIn
- --builtins clear,rare,informal,usage,code,names,en-GB_to_en-US
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.5.2
hooks:
- id: ruff
exclude: '^(third_party/)|(msgq/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)'
Expand Down Expand Up @@ -93,6 +93,6 @@ repos:
pass_filenames: false
files: '^selfdrive/ui/translations/'
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.6
rev: 0.29.0
hooks:
- id: check-github-workflows
2 changes: 1 addition & 1 deletion tools/sim/bridge/metadrive/metadrive_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def get_cam_as_rgb(cam):
cam.get_cam().setPos(C3_POSITION)
cam.get_cam().setHpr(C3_HPR)
img = cam.perceive(to_float=False)
if type(img) != np.ndarray:
if not isinstance(img, np.ndarray):
img = img.get() # convert cupy array to numpy
return img

Expand Down
Loading

0 comments on commit daf3d15

Please sign in to comment.