From c8a9592ef50e15e1a33e302057e5f50d73c59d84 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 20:26:12 +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: v4.4.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v5.0.0) - [github.com/asottile/pyupgrade: v3.3.1 → v3.20.0](https://github.com/asottile/pyupgrade/compare/v3.3.1...v3.20.0) - [github.com/PyCQA/isort: 5.12.0 → 6.0.1](https://github.com/PyCQA/isort/compare/5.12.0...6.0.1) - [github.com/psf/black: 23.1.0 → 25.1.0](https://github.com/psf/black/compare/23.1.0...25.1.0) - [github.com/asottile/setup-cfg-fmt: v2.2.0 → v2.8.0](https://github.com/asottile/setup-cfg-fmt/compare/v2.2.0...v2.8.0) --- .pre-commit-config.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 452c011..5046c79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-case-conflict - id: check-merge-conflict @@ -12,7 +12,7 @@ repos: - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.20.0 hooks: - id: pyupgrade name: PyUpgrade 3.6+ @@ -20,17 +20,17 @@ repos: exclude: ^bin/ - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 6.0.1 hooks: - id: isort args: [--profile, black] - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/asottile/setup-cfg-fmt - rev: v2.2.0 + rev: v2.8.0 hooks: - id: setup-cfg-fmt From 0e61cd3dc3b78ba14604a221b67b50fbbc188bc2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 26 May 2025 20:26:20 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pupil_capture/pupil_capture_lsl_relay/channel.py | 5 +++-- .../pupil_capture_lsl_relay/fixations_scene_camera.py | 1 + pupil_capture/pupil_capture_lsl_relay/gaze_scene_camera.py | 1 + pupil_capture/pupil_capture_lsl_relay/outlet.py | 1 + .../pupil_capture_lsl_relay/pupillometry_eye_camera.py | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pupil_capture/pupil_capture_lsl_relay/channel.py b/pupil_capture/pupil_capture_lsl_relay/channel.py index a8cf1bc..4e66afc 100644 --- a/pupil_capture/pupil_capture_lsl_relay/channel.py +++ b/pupil_capture/pupil_capture_lsl_relay/channel.py @@ -7,6 +7,7 @@ License details are in the file license.txt, distributed as part of this software. ----------------------------------------------------------------------------------~(*) """ + import numpy as np from pylsl import XMLElement @@ -189,8 +190,8 @@ def make_extract_normpos(dim): def make_extract_gaze_point_3d(dim): - return ( - lambda gaze: gaze["gaze_point_3d"][dim] if "gaze_point_3d" in gaze else np.nan + return lambda gaze: ( + gaze["gaze_point_3d"][dim] if "gaze_point_3d" in gaze else np.nan ) diff --git a/pupil_capture/pupil_capture_lsl_relay/fixations_scene_camera.py b/pupil_capture/pupil_capture_lsl_relay/fixations_scene_camera.py index 051e483..47f6642 100644 --- a/pupil_capture/pupil_capture_lsl_relay/fixations_scene_camera.py +++ b/pupil_capture/pupil_capture_lsl_relay/fixations_scene_camera.py @@ -7,6 +7,7 @@ License details are in the file license.txt, distributed as part of this software. ----------------------------------------------------------------------------------~(*) """ + from .channel import ( confidence_channel, fixation_dispersion_channel, diff --git a/pupil_capture/pupil_capture_lsl_relay/gaze_scene_camera.py b/pupil_capture/pupil_capture_lsl_relay/gaze_scene_camera.py index d678b51..789c03c 100644 --- a/pupil_capture/pupil_capture_lsl_relay/gaze_scene_camera.py +++ b/pupil_capture/pupil_capture_lsl_relay/gaze_scene_camera.py @@ -7,6 +7,7 @@ License details are in the file license.txt, distributed as part of this software. ----------------------------------------------------------------------------------~(*) """ + from .channel import ( confidence_channel, diameter_2d_channels, diff --git a/pupil_capture/pupil_capture_lsl_relay/outlet.py b/pupil_capture/pupil_capture_lsl_relay/outlet.py index c6bda6c..0a808c6 100644 --- a/pupil_capture/pupil_capture_lsl_relay/outlet.py +++ b/pupil_capture/pupil_capture_lsl_relay/outlet.py @@ -7,6 +7,7 @@ License details are in the file license.txt, distributed as part of this software. ----------------------------------------------------------------------------------~(*) """ + import abc import logging from typing import Optional, Sequence diff --git a/pupil_capture/pupil_capture_lsl_relay/pupillometry_eye_camera.py b/pupil_capture/pupil_capture_lsl_relay/pupillometry_eye_camera.py index 84afd31..72fb928 100644 --- a/pupil_capture/pupil_capture_lsl_relay/pupillometry_eye_camera.py +++ b/pupil_capture/pupil_capture_lsl_relay/pupillometry_eye_camera.py @@ -7,6 +7,7 @@ License details are in the file license.txt, distributed as part of this software. ----------------------------------------------------------------------------------~(*) """ + from .channel import ( confidence_channel, diameter_2d_channels,