From 7aedbbf81a9dca4ca06eb91ce99097b31448735f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sat, 18 Oct 2025 01:20:45 +0200 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#1563) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.12.4 → v0.13.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.12.4...v0.13.0) - [github.com/adhtruong/mirrors-typos: v1.34.0 → v1.36.2](https://github.com/adhtruong/mirrors-typos/compare/v1.34.0...v1.36.2) - [github.com/gitleaks/gitleaks: v8.27.2 → v8.28.0](https://github.com/gitleaks/gitleaks/compare/v8.27.2...v8.28.0) - [github.com/woodruffw/zizmor-pre-commit: v1.11.0 → v1.13.0](https://github.com/woodruffw/zizmor-pre-commit/compare/v1.11.0...v1.13.0) * chore: update pre-commit versions --------- Co-authored-by: Steven Palma --- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 14 +++++++------- pyproject.toml | 1 + src/lerobot/motors/dynamixel/dynamixel.py | 2 +- tests/rl/test_learner_service.py | 4 ++-- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e05b4816..7339d44e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -138,7 +138,7 @@ jobs: - name: Setup uv and Python uses: astral-sh/setup-uv@v6 # zizmor: ignore[unpinned-uses] with: - enable-cache: true + enable-cache: true # zizmor: ignore[cache-poisoning] version: ${{ env.UV_VERSION }} python-version: ${{ env.PYTHON_VERSION }} - name: Create uv virtual environment diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7f5beff8..896a0c10 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: ##### General Code Quality & Formatting ##### - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: ['--maxkb=1024'] @@ -39,20 +39,20 @@ repos: - id: trailing-whitespace - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.12.4 + rev: v0.14.1 hooks: - id: ruff-format - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/adhtruong/mirrors-typos - rev: v1.34.0 + rev: v1.38.1 hooks: - id: typos args: [--force-exclude] - repo: https://github.com/asottile/pyupgrade - rev: v3.20.0 + rev: v3.21.0 hooks: - id: pyupgrade args: [--py310-plus] @@ -68,12 +68,12 @@ repos: ##### Security ##### - repo: https://github.com/gitleaks/gitleaks - rev: v8.27.2 + rev: v8.28.0 hooks: - id: gitleaks - repo: https://github.com/woodruffw/zizmor-pre-commit - rev: v1.11.0 + rev: v1.15.2 hooks: - id: zizmor @@ -87,7 +87,7 @@ repos: # TODO(Steven): Uncomment when ready to use ##### Static Analysis & Typing ##### - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.18.2 hooks: - id: mypy args: [--config-file=pyproject.toml] diff --git a/pyproject.toml b/pyproject.toml index 876f3699..1d0ac6ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -246,6 +246,7 @@ default.extend-ignore-identifiers-re = [ "pn", "ser", "ein", + "inpt", ] # TODO: Uncomment when ready to use diff --git a/src/lerobot/motors/dynamixel/dynamixel.py b/src/lerobot/motors/dynamixel/dynamixel.py index e1d4e096..01bfcf54 100644 --- a/src/lerobot/motors/dynamixel/dynamixel.py +++ b/src/lerobot/motors/dynamixel/dynamixel.py @@ -60,7 +60,7 @@ class OperatingMode(Enum): # This mode controls position. This mode is identical to the Multi-turn Position Control from existing # DYNAMIXEL. 512 turns are supported(-256[rev] ~ 256[rev]). This mode is ideal for multi-turn wrists or - # conveyer systems or a system that requires an additional reduction gear. Note that Max Position + # conveyor systems or a system that requires an additional reduction gear. Note that Max Position # Limit(48), Min Position Limit(52) are not used on Extended Position Control Mode. EXTENDED_POSITION = 4 diff --git a/tests/rl/test_learner_service.py b/tests/rl/test_learner_service.py index b0e61165..e0f0292b 100644 --- a/tests/rl/test_learner_service.py +++ b/tests/rl/test_learner_service.py @@ -117,12 +117,12 @@ def test_send_interactions(): services_pb2.InteractionMessage(transfer_state=services_pb2.TransferState.TRANSFER_END, data=b"8"), ] - def mock_intercations_stream(): + def mock_interactions_stream(): yield from list_of_interaction_messages return services_pb2.Empty() - response = client.SendInteractions(mock_intercations_stream()) + response = client.SendInteractions(mock_interactions_stream()) assert response == services_pb2.Empty() close_learner_service_stub(channel, server)