Skip to content

Commit

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

updates:
- [github.com/psf/black-pre-commit-mirror: 24.10.0 → 25.1.0](psf/black-pre-commit-mirror@24.10.0...25.1.0)
- [github.com/codespell-project/codespell: v2.4.0 → v2.4.1](codespell-project/codespell@v2.4.0...v2.4.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>
  • Loading branch information
pre-commit-ci[bot] authored Feb 5, 2025
1 parent 9a1dd33 commit 087bceb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ repos:
additional_dependencies: [pandas-stubs, types-tqdm, types-setuptools, types-Jinja2]
args: [--config-file=pyproject.toml]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
rev: v2.4.0
rev: v2.4.1
hooks:
- id: codespell
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion giga_connectome/atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def get_atlas_labels() -> List[str]:


def _check_altas_config(
atlas: str | Path | dict[str, Any]
atlas: str | Path | dict[str, Any],
) -> ATLAS_CONFIG_TYPE:
"""Load the configuration file.
Expand Down
4 changes: 2 additions & 2 deletions giga_connectome/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def get_bids_images(


def check_filter(
bids_filters: None | dict[str, dict[str, str]]
bids_filters: None | dict[str, dict[str, str]],
) -> dict[str, dict[str, str]]:
"""Should only have bold and mask."""
if not bids_filters:
Expand All @@ -105,7 +105,7 @@ def check_filter(


def _filter_pybids_none_any(
dct: dict[str, None | str]
dct: dict[str, None | str],
) -> dict[str, Query.NONE | Query.ANY]:
return {
k: Query.NONE if v is None else (Query.ANY if v == "*" else v)
Expand Down

0 comments on commit 087bceb

Please sign in to comment.