Skip to content

Commit c2b477b

Browse files
chore: update pre-commit hooks (#258)
* chore: update pre-commit hooks updates: - [github.com/macisamuele/language-formatters-pre-commit-hooks: v2.15.0 → v2.16.0](macisamuele/language-formatters-pre-commit-hooks@v2.15.0...v2.16.0) - [github.com/asottile/pyupgrade: v3.21.1 → v3.21.2](asottile/pyupgrade@v3.21.1...v3.21.2) - [github.com/seddonym/import-linter: v2.6 → v2.10](seddonym/import-linter@v2.6...v2.10) - [github.com/pycqa/isort: 7.0.0 → 8.0.0](PyCQA/isort@7.0.0...8.0.0) - [github.com/psf/black-pre-commit-mirror: 25.11.0 → 26.1.0](psf/black-pre-commit-mirror@25.11.0...26.1.0) - [github.com/pre-commit/mirrors-mypy: v1.18.2 → v1.19.1](pre-commit/mirrors-mypy@v1.18.2...v1.19.1) * [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>
1 parent 4851167 commit c2b477b

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ repos:
2121
args: [--mapping, '4', --sequence, '4', --offset, '0']
2222

2323
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
24-
rev: v2.15.0
24+
rev: v2.16.0
2525
hooks:
2626
- id: pretty-format-toml
2727
args: [--autofix, --indent, '4']
2828

2929
- repo: https://github.com/asottile/pyupgrade
30-
rev: v3.21.1
30+
rev: v3.21.2
3131
hooks:
3232
- id: pyupgrade
3333
args: [--py38-plus]
3434

3535
- repo: https://github.com/seddonym/import-linter
36-
rev: v2.6
36+
rev: v2.10
3737
hooks:
3838
- id: import-linter
3939

4040
- repo: https://github.com/pycqa/isort
41-
rev: 7.0.0
41+
rev: 8.0.0
4242
hooks:
4343
- id: isort
4444
args: [--settings-path, pyproject.toml]
@@ -51,13 +51,13 @@ repos:
5151
- black==24.2.0
5252

5353
- repo: https://github.com/psf/black-pre-commit-mirror
54-
rev: 25.11.0
54+
rev: 26.1.0
5555
hooks:
5656
- id: black
5757
args: [--config=pyproject.toml]
5858

5959
- repo: https://github.com/pre-commit/mirrors-mypy
60-
rev: v1.18.2
60+
rev: v1.19.1
6161
hooks:
6262
- id: mypy
6363
additional_dependencies: [pydantic, numpy, types-Jinja2]

bidsmreye/bidsmreye.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Main script."""
3+
34
from __future__ import annotations
45

56
import json

bidsmreye/configuration.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ def _check_input_dir(self, attribute: str, value: Path) -> None:
3535
)
3636

3737
if not (value / "dataset_description.json").is_file():
38-
raise ValueError(
39-
f"""input_dir does not seem to be a valid BIDS dataset.
38+
raise ValueError(f"""input_dir does not seem to be a valid BIDS dataset.
4039
No dataset_description.json found:
41-
\t{value.absolute()}."""
42-
)
40+
\t{value.absolute()}.""")
4341

4442
output_dir: Path = field(default=None, converter=Path)
4543

bidsmreye/generalize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def process_subject(cfg: Config, layout_out: BIDSLayout, subject_label: str) ->
227227

228228
opts = model_opts.get_opts()
229229

230-
(_, model_inference) = train.train_model(
230+
_, model_inference = train.train_model(
231231
dataset="example_data",
232232
generators=generators,
233233
opts=opts,
@@ -241,7 +241,7 @@ def process_subject(cfg: Config, layout_out: BIDSLayout, subject_label: str) ->
241241
elif log.isEnabledFor(logging.INFO):
242242
verbose = 1
243243

244-
(_, _) = train.evaluate_model(
244+
_, _ = train.evaluate_model(
245245
dataset="tmp",
246246
model=model_inference,
247247
generators=generators,

bidsmreye/visualize.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ def collect_group_qc_data(cfg: Config) -> pd.DataFrame | None:
8989
try:
9090
qc_data = qc_data[cols]
9191
except KeyError:
92-
log.error(
93-
f"""Sidecar files seem to be missing the keys: {cols}.
94-
To fix try to run the qc at the participant level first."""
95-
)
92+
log.error(f"""Sidecar files seem to be missing the keys: {cols}.
93+
To fix try to run the qc at the participant level first.""")
9694
return None
9795

9896
return qc_data

0 commit comments

Comments
 (0)