diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9930f29fbb7..a381aafadbf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: # Ruff mne - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.13.2 + rev: v0.13.3 hooks: - id: ruff-check name: ruff lint mne diff --git a/mne/conftest.py b/mne/conftest.py index cc5eb89bba5..5cee2258836 100644 --- a/mne/conftest.py +++ b/mne/conftest.py @@ -180,7 +180,7 @@ def pytest_configure(config: pytest.Config): # pyvista <-> NumPy 2.0 ignore:__array_wrap__ must accept context and return_scalar arguments.*:DeprecationWarning # pyvista <-> VTK dev - ignore:Call to deprecated method GetInputAsDataSet.*:DeprecationWarning + ignore:Call to deprecated method Get.*:DeprecationWarning # nibabel <-> NumPy 2.0 ignore:__array__ implementation doesn't accept a copy.*:DeprecationWarning # quantities via neo diff --git a/mne/preprocessing/tests/test_maxwell.py b/mne/preprocessing/tests/test_maxwell.py index a64b73e1619..3cfd5e547c7 100644 --- a/mne/preprocessing/tests/test_maxwell.py +++ b/mne/preprocessing/tests/test_maxwell.py @@ -562,6 +562,7 @@ def test_multipolar_bases(): assert_allclose(S_tot, S_tot_fast * flips, atol=1e-16) +# This is also slow, but we probably want it running on all OSes @testing.requires_testing_data def test_basic(): """Test Maxwell filter basic version.""" @@ -755,6 +756,7 @@ def test_spatiotemporal(): maxwell_filter(raw, st_duration=10.0, st_correlation=0.0) +@pytest.mark.slowtest @buggy_mkl_svd @testing.requires_testing_data def test_st_overlap(): @@ -949,6 +951,7 @@ def _check_reg_match(sss_py, sss_mf, comp_tol): ) +@pytest.mark.slowtest @testing.requires_testing_data def test_cross_talk(tmp_path): """Test Maxwell filter cross-talk cancellation.""" @@ -1077,6 +1080,7 @@ def _assert_shielding(raw_sss, erm_power, min_factor, max_factor=np.inf, meg="ma ) +@pytest.mark.slowtest @buggy_mkl_svd @testing.requires_testing_data @pytest.mark.parametrize("regularize", ("in", None)) @@ -1560,6 +1564,7 @@ def test_MGH_cross_talk(): assert len(py_ctc) > 0 +@pytest.mark.slowtest @testing.requires_testing_data def test_mf_skips(): """Test processing of data with skips.""" @@ -1607,6 +1612,7 @@ def test_mf_skips(): assert_allclose(data_sc, data_cs, atol=1e-20) +@pytest.mark.slowtest @testing.requires_testing_data @pytest.mark.parametrize( ( @@ -1826,6 +1832,7 @@ def test_find_bad_channels_maxwell( assert bads == set(want_bads) +@pytest.mark.slowtest def test_find_bads_maxwell_flat(): """Test find_bads_maxwell when there are flat channels.""" # See gh-9479 diff --git a/tools/install_pre_requirements.sh b/tools/install_pre_requirements.sh index 94a78a8b2fa..573beffd6e5 100755 --- a/tools/install_pre_requirements.sh +++ b/tools/install_pre_requirements.sh @@ -38,7 +38,13 @@ echo "::endgroup::" # No Numba because it forces an old NumPy version echo "::group::VTK" -python -m pip install $STD_ARGS --only-binary ":all:" --extra-index-url "https://wheels.vtk.org" vtk +if [[ "$PLATFORM" == "Linux" ]]; then + # Segfault trying to load libx11.so.6 + VTK_ARGS="" +else + VTK_ARGS="--extra-index-url \"https://wheels.vtk.org\"" +fi +python -m pip install $STD_ARGS --only-binary ":all:" vtk $VTK_ARGS python -c "import vtk" echo "::endgroup::"