Skip to content

Commit 4fdde3a

Browse files
[pre-commit.ci] pre-commit autoupdate (#13434)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Eric Larson <[email protected]>
1 parent 34e2743 commit 4fdde3a

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
repos:
22
# Ruff mne
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: v0.13.2
4+
rev: v0.13.3
55
hooks:
66
- id: ruff-check
77
name: ruff lint mne

mne/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def pytest_configure(config: pytest.Config):
180180
# pyvista <-> NumPy 2.0
181181
ignore:__array_wrap__ must accept context and return_scalar arguments.*:DeprecationWarning
182182
# pyvista <-> VTK dev
183-
ignore:Call to deprecated method GetInputAsDataSet.*:DeprecationWarning
183+
ignore:Call to deprecated method Get.*:DeprecationWarning
184184
# nibabel <-> NumPy 2.0
185185
ignore:__array__ implementation doesn't accept a copy.*:DeprecationWarning
186186
# quantities via neo

mne/preprocessing/tests/test_maxwell.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -562,6 +562,7 @@ def test_multipolar_bases():
562562
assert_allclose(S_tot, S_tot_fast * flips, atol=1e-16)
563563

564564

565+
# This is also slow, but we probably want it running on all OSes
565566
@testing.requires_testing_data
566567
def test_basic():
567568
"""Test Maxwell filter basic version."""
@@ -755,6 +756,7 @@ def test_spatiotemporal():
755756
maxwell_filter(raw, st_duration=10.0, st_correlation=0.0)
756757

757758

759+
@pytest.mark.slowtest
758760
@buggy_mkl_svd
759761
@testing.requires_testing_data
760762
def test_st_overlap():
@@ -949,6 +951,7 @@ def _check_reg_match(sss_py, sss_mf, comp_tol):
949951
)
950952

951953

954+
@pytest.mark.slowtest
952955
@testing.requires_testing_data
953956
def test_cross_talk(tmp_path):
954957
"""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
10771080
)
10781081

10791082

1083+
@pytest.mark.slowtest
10801084
@buggy_mkl_svd
10811085
@testing.requires_testing_data
10821086
@pytest.mark.parametrize("regularize", ("in", None))
@@ -1560,6 +1564,7 @@ def test_MGH_cross_talk():
15601564
assert len(py_ctc) > 0
15611565

15621566

1567+
@pytest.mark.slowtest
15631568
@testing.requires_testing_data
15641569
def test_mf_skips():
15651570
"""Test processing of data with skips."""
@@ -1607,6 +1612,7 @@ def test_mf_skips():
16071612
assert_allclose(data_sc, data_cs, atol=1e-20)
16081613

16091614

1615+
@pytest.mark.slowtest
16101616
@testing.requires_testing_data
16111617
@pytest.mark.parametrize(
16121618
(
@@ -1826,6 +1832,7 @@ def test_find_bad_channels_maxwell(
18261832
assert bads == set(want_bads)
18271833

18281834

1835+
@pytest.mark.slowtest
18291836
def test_find_bads_maxwell_flat():
18301837
"""Test find_bads_maxwell when there are flat channels."""
18311838
# See gh-9479

tools/install_pre_requirements.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ echo "::endgroup::"
3838
# No Numba because it forces an old NumPy version
3939

4040
echo "::group::VTK"
41-
python -m pip install $STD_ARGS --only-binary ":all:" --extra-index-url "https://wheels.vtk.org" vtk
41+
if [[ "$PLATFORM" == "Linux" ]]; then
42+
# Segfault trying to load libx11.so.6
43+
VTK_ARGS=""
44+
else
45+
VTK_ARGS="--extra-index-url \"https://wheels.vtk.org\""
46+
fi
47+
python -m pip install $STD_ARGS --only-binary ":all:" vtk $VTK_ARGS
4248
python -c "import vtk"
4349
echo "::endgroup::"
4450

0 commit comments

Comments
 (0)