diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 452c011..b101a4e 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.19.1 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 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,