Skip to content

Commit

Permalink
Update pre-commit hooks, fix sphinx_gallery (#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] authored May 13, 2024
1 parent e8eb7a7 commit 96f8dee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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)

0 comments on commit 96f8dee

Please sign in to comment.