Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v6.0.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
Expand All @@ -12,25 +12,25 @@ 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+
args: ["--py36-plus"]
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.9.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
5 changes: 3 additions & 2 deletions pupil_capture/pupil_capture_lsl_relay/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pupil_capture/pupil_capture_lsl_relay/gaze_scene_camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions pupil_capture/pupil_capture_lsl_relay/outlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down