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: 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