Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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: v5.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.19.1
hooks:
- id: pyupgrade
name: PyUpgrade 3.6+
args: ["--py36-plus"]
exclude: ^bin/

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black]

- repo: https://github.com/psf/black
rev: 23.1.0
rev: 24.10.0
hooks:
- id: black

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
rev: v2.7.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