From cad22ab0d74bbbd60bdf2007f0f12d9b472e6d9c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 18:11:40 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/rstcheck/rstcheck: v6.2.4 → v6.2.5](https://github.com/rstcheck/rstcheck/compare/v6.2.4...v6.2.5) - [github.com/pycqa/isort: 6.0.0 → 9.0.0a3](https://github.com/pycqa/isort/compare/6.0.0...9.0.0a3) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 25.1.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.1.0...26.3.1) - [github.com/PyCQA/flake8: 7.1.1 → 7.3.0](https://github.com/PyCQA/flake8/compare/7.1.1...7.3.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c7ceee9d5..585819896 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace # debian/patches needs whitespace at end of line @@ -19,7 +19,7 @@ repos: # - id: docformatter - repo: https://github.com/rstcheck/rstcheck - rev: "v6.2.4" + rev: "v6.2.5" hooks: - id: rstcheck args: @@ -33,18 +33,18 @@ repos: ] - repo: https://github.com/pycqa/isort - rev: 6.0.0 + rev: 9.0.0a3 hooks: - id: isort - - repo: https://github.com/psf/black - rev: 25.1.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 26.3.1 hooks: - id: black # https://black.readthedocs.io/en/stable/faq.html#why-are-flake8-s-e203-and-w503-violated - repo: https://github.com/PyCQA/flake8 - rev: 7.1.1 + rev: 7.3.0 hooks: - id: flake8 args: From 0683202d93b81649f4d2e85666a07601410de9ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 27 Apr 2026 18:12:34 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../keyboard/pitop/keyboard/vendor/pynput/mouse/_darwin.py | 2 +- .../pitop/miniscreen/oled/core/contrib/luma/core/virtual.py | 4 ++-- packages/pitop/pitop/__init__.py | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/packages/keyboard/pitop/keyboard/vendor/pynput/mouse/_darwin.py b/packages/keyboard/pitop/keyboard/vendor/pynput/mouse/_darwin.py index d1d5b3ce8..dd4cbad8c 100644 --- a/packages/keyboard/pitop/keyboard/vendor/pynput/mouse/_darwin.py +++ b/packages/keyboard/pitop/keyboard/vendor/pynput/mouse/_darwin.py @@ -172,7 +172,7 @@ def _handle(self, dummy_proxy, event_type, event, dummy_refcon): initialisation. """ try: - (px, py) = Quartz.CGEventGetLocation(event) + px, py = Quartz.CGEventGetLocation(event) except AttributeError: # This happens during teardown of the virtual machine return diff --git a/packages/miniscreen/pitop/miniscreen/oled/core/contrib/luma/core/virtual.py b/packages/miniscreen/pitop/miniscreen/oled/core/contrib/luma/core/virtual.py index 722203e13..8d766d388 100644 --- a/packages/miniscreen/pitop/miniscreen/oled/core/contrib/luma/core/virtual.py +++ b/packages/miniscreen/pitop/miniscreen/oled/core/contrib/luma/core/virtual.py @@ -73,7 +73,7 @@ def add_hotspot(self, hotspot, xy): The hotspot must fit inside the bounds of the virtual device. If it does not then an ``AssertError`` is raised. """ - (x, y) = xy + x, y = xy assert 0 <= x <= self.width - hotspot.width assert 0 <= y <= self.height - hotspot.height @@ -117,7 +117,7 @@ def refresh(self): self._device.display(im) def _crop_box(self): - (left, top) = self._position + left, top = self._position right = left + self._device.width bottom = top + self._device.height diff --git a/packages/pitop/pitop/__init__.py b/packages/pitop/pitop/__init__.py index 43fea8a68..b4a4d330d 100644 --- a/packages/pitop/pitop/__init__.py +++ b/packages/pitop/pitop/__init__.py @@ -23,10 +23,7 @@ ) from pitop.pma import ServoMotorSetting from pitop.pma import ServoMotorSetting as ServoMotorState -from pitop.pma import ( - SoundSensor, - UltrasonicSensor, -) +from pitop.pma import SoundSensor, UltrasonicSensor from pitop.pma.parameters import BrakingType, Direction, ForwardDirection # Robotics