[bot] Update Python packages and pre-commit hooks (#32682)

* Update Python packages and pre-commit hooks

* fix linter

* poetry lock

---------

Co-authored-by: Vehicle Researcher <user@comma.ai>
Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
old-commit-hash: 71063d66cd
097
commaci-public 11 months ago committed by GitHub
parent c34f76bc1a
commit 0ee93c6a90
  1. 8
      .pre-commit-config.yaml
  2. 2
      poetry.lock
  3. 2
      system/webrtc/webrtcd.py
  4. 2
      tools/mac_setup.sh
  5. 2
      tools/sim/lib/common.py

@ -24,16 +24,16 @@ repos:
- --maxkb=120 - --maxkb=120
- --enforce-all - --enforce-all
- repo: https://github.com/codespell-project/codespell - repo: https://github.com/codespell-project/codespell
rev: v2.2.6 rev: v2.3.0
hooks: hooks:
- id: codespell - id: codespell
exclude: '^(third_party/)|(body/)|(msgq/)|(panda/)|(opendbc/)|(rednose/)|(rednose_repo/)|(teleoprtc/)|(teleoprtc_repo/)|(selfdrive/ui/translations/.*.ts)|(poetry.lock)' exclude: '^(third_party/)|(body/)|(msgq/)|(panda/)|(opendbc/)|(rednose/)|(rednose_repo/)|(teleoprtc/)|(teleoprtc_repo/)|(selfdrive/ui/translations/.*.ts)|(poetry.lock)'
args: args:
# if you've got a short variable name that's getting flagged, add it here # if you've got a short variable name that's getting flagged, add it here
- -L bu,ro,te,ue,alo,hda,ois,nam,nams,ned,som,parm,setts,inout,warmup,bumb,nd,sie,preints - -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 - --builtins clear,rare,informal,usage,code,names,en-GB_to_en-US
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.4 rev: v0.4.8
hooks: hooks:
- id: ruff - id: ruff
exclude: '^(third_party/)|(msgq/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)' exclude: '^(third_party/)|(msgq/)|(panda/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(teleoprtc/)|(teleoprtc_repo/)'
@ -98,6 +98,6 @@ repos:
args: args:
- --lock - --lock
- repo: https://github.com/python-jsonschema/check-jsonschema - repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.3 rev: 0.28.4
hooks: hooks:
- id: check-github-workflows - id: check-github-workflows

2
poetry.lock generated

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:f15594de9ee8d67839f4cc7ae6d5c25ae254046716900bce80fc6904a63951f8 oid sha256:0d9f6a97cc9f69ab14aaa50e64ee4bd0da11fa1b2fa8314d7b7ec4a380fe9e8f
size 618404 size 618404

@ -24,7 +24,7 @@ from cereal import messaging, log
class CerealOutgoingMessageProxy: class CerealOutgoingMessageProxy:
def __init__(self, sm: messaging.SubMaster): def __init__(self, sm: messaging.SubMaster):
self.sm = sm self.sm = sm
self.channels: list['RTCDataChannel'] = [] self.channels: list[RTCDataChannel] = []
def add_channel(self, channel: 'RTCDataChannel'): def add_channel(self, channel: 'RTCDataChannel'):
self.channels.append(channel) self.channels.append(channel)

@ -28,7 +28,7 @@ fi
# Install brew if required # Install brew if required
if [[ $(command -v brew) == "" ]]; then if [[ $(command -v brew) == "" ]]; then
echo "Installing Hombrew" echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
echo "[ ] installed brew t=$SECONDS" echo "[ ] installed brew t=$SECONDS"

@ -17,7 +17,7 @@ class GPSState:
self.altitude = 0 self.altitude = 0
def from_xy(self, xy): def from_xy(self, xy):
"""Simulates a lat/lon from an xy coordinate on a plane, for simple simlation. TODO: proper global projection?""" """Simulates a lat/lon from an xy coordinate on a plane, for simple simulation. TODO: proper global projection?"""
BASE_LAT = 32.75308505188913 BASE_LAT = 32.75308505188913
BASE_LON = -117.2095393365393 BASE_LON = -117.2095393365393
DEG_TO_METERS = 100000 DEG_TO_METERS = 100000

Loading…
Cancel
Save