Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#116)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/mirrors-mypy: v1.13.0 → v1.14.1](pre-commit/mirrors-mypy@v1.13.0...v1.14.1)
- [github.com/astral-sh/ruff-pre-commit: v0.8.1 → v0.9.2](astral-sh/ruff-pre-commit@v0.8.1...v0.9.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Julia-Katharina Pfarr <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and julia-pfarr authored Jan 22, 2025
1 parent d5d9c9f commit 71df666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ repos:
args: [--autofix, --indent, '4']

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies: [types-requests, types-PyYAML, numpy]
args: [--config-file=pyproject.toml]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.9.2
hooks:
# Run the linter.
- id: ruff
Expand Down
6 changes: 2 additions & 4 deletions eye2bids/edf2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,8 +543,7 @@ def edf2bids(

if not events_asc_file.exists():
e2b_log.error(
"The following .edf input file could not be converted to .asc:"
f"{input_file}"
f"The following .edf input file could not be converted to .asc:{input_file}"
)

# SIDECARS #
Expand Down Expand Up @@ -590,8 +589,7 @@ def edf2bids(
samples_asc_file = _convert_edf_to_asc_samples(input_file)
if not samples_asc_file.exists():
e2b_log.error(
"The following .edf input file could not be converted to .asc:"
f"{input_file}"
f"The following .edf input file could not be converted to .asc:{input_file}"
)

samples = pd.read_csv(samples_asc_file, sep="\t", header=None)
Expand Down

0 comments on commit 71df666

Please sign in to comment.