Skip to content

Commit

Permalink
Merge pull request #38 from pupil-labs/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
dourvaris authored Aug 28, 2024
2 parents ec0c10b + 888fa6a commit 0bdf9fd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
12 changes: 6 additions & 6 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: v4.6.0
hooks:
- id: check-case-conflict
- id: check-merge-conflict
Expand All @@ -12,30 +12,30 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.17.0
hooks:
- id: pyupgrade
name: PyUpgrade 3.6+
args: ["--py36-plus"]
exclude: ^bin/

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8

- 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.3.0
rev: 24.8.0
hooks:
- id: black

- repo: https://github.com/asottile/setup-cfg-fmt
rev: v2.2.0
rev: v2.5.0
hooks:
- id: setup-cfg-fmt
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ url = https://github.com/pupil-labs/lsl-relay/
author = Pupil Labs GmbH
author_email = [email protected]
license = MIT
license_file = LICENSE
license_files = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
Expand Down
6 changes: 2 additions & 4 deletions src/pupil_labs/lsl_relay/linear_time_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ class TimeAlignmentModels:
lsl_to_cloud: linear_model.LinearRegression

@overload
def to_json(self, path: Union[str, Path]) -> None:
...
def to_json(self, path: Union[str, Path]) -> None: ...

@overload
def to_json(self, path: None) -> str:
...
def to_json(self, path: None) -> str: ...

def to_json(self, path: Union[None, str, Path] = None) -> Optional[str]:
mapping_parameters = {
Expand Down

0 comments on commit 0bdf9fd

Please sign in to comment.