Skip to content

Commit 00f647e

Browse files
FIX: resolve ruff style failures blocking CI
- doc/conf.py line 675: split `return orig_pooch_fetch(...)` string literal across multiple lines to stay within the 88-char limit (E501) - mne/parallel.py: move docstring before the emscripten early-return so it is the first statement in the function (required by pydocstyle/ruff) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8a27d6d commit 00f647e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,9 @@
672672
" 'dataset downloads. Open this notebook from mne.tools '\n"
673673
" 'where sample data is pre-bundled, or run it locally.'\n"
674674
" )\n"
675-
" return orig_pooch_fetch(self, fname, processor=processor, downloader=downloader)\n"
675+
" return orig_pooch_fetch(\n"
676+
" self, fname, processor=processor, downloader=downloader\n"
677+
" )\n"
676678
"pooch.Pooch.fetch = pyodide_pooch_fetch\n"
677679
"\n"
678680
"# Import MNE and finalize setup.\n"

mne/parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ def parallel_progress(op_iter):
155155

156156

157157
def _running_in_joblib_context():
158+
"""Check if we are running in a joblib.parallel_config context manager."""
158159
import sys
159160

160161
if sys.platform == "emscripten":
161162
return False
162-
"""Check if we are running in a joblib.parallel_config context manager."""
163163
try:
164164
from joblib.parallel import get_active_backend
165165
except ImportError:

0 commit comments

Comments
 (0)