diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0cc683ce5..e39900250 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.3.5 + rev: v0.4.3 hooks: - id: ruff name: ruff mne_bids/ diff --git a/doc/conf.py b/doc/conf.py index 3bf2f4e76..75844212d 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -4,7 +4,7 @@ from datetime import date import sphinx_gallery # noqa: F401 -from sphinx_gallery.sorting import ExampleTitleSortKey +from sphinx.config import is_serializable import mne_bids @@ -179,7 +179,9 @@ }, "backreferences_dir": "generated", "examples_dirs": "../examples", - "within_subsection_order": ExampleTitleSortKey, + "within_subsection_order": "ExampleTitleSortKey", "gallery_dirs": "auto_examples", "filename_pattern": "^((?!sgskip).)*$", } + +assert is_serializable(sphinx_gallery_conf)