Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pre-commit hooks, fix sphinx_gallery #1245

Merged
merged 2 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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/
Expand Down
6 changes: 4 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)