Error running pytest

When running pytest I am greeted by this error:

(mnedev) ✘-TSTP /mnt/d/git/obergmartin/mne-python [main|⚑ 1] 
11:33 $ pytest mne/tests/test_evoked.py -k test_io_evoked --verbose
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov-branch --cov-report=
  inifile: /mnt/d/git/obergmartin/mne-python/pyproject.toml
  rootdir: /mnt/d/git/obergmartin/mne-python

I set up mne with a conda environment, but the same error occurs with my usual python venv installation.

I am using WSL2 on Win11.

11:34 $ mne sys_info
Platform             Linux-6.18.33.1-microsoft-standard-WSL2-x86_64-with-glibc2.35
Python               3.14.6 | packaged by conda-forge | (main, Jun 12 2026, 08:51:42) [GCC 14.3.0]
Executable           /home/oberg/mne-python/1.7.1_0/envs/mnedev/bin/python3.14
CPU                  12th Gen Intel(R) Core(TM) i7-12700 (20 cores)
Memory               15.5 GiB

Core
├☑ mne               1.12.1 (latest release)
├☑ numpy             2.4.6 (OpenBLAS 0.3.33 with 20 threads)
├☑ scipy             1.18.0
└☑ matplotlib        3.11.0 (backend=qtagg)

Numerical (optional)
├☑ sklearn           1.9.0
├☑ numba             0.65.1
├☑ nibabel           5.4.2
├☑ nilearn           0.13.1
├☑ dipy              1.12.1
├☑ openmeeg          2.5.16
├☑ pandas            3.0.3
├☑ h5io              0.2.5
├☑ h5py              3.16.0
└☐ unavailable       cupy

Visualization (optional)
├☑ pyvista           0.48.4 (OpenGL 4.2 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.4 via D3D12 (NVIDIA GeForce RTX 30
60))
├☑ pyvistaqt         0.11.4
├☑ vtk               9.6.0
├☑ qtpy              2.4.3 (PySide6=6.10.2)
├☑ ipympl            0.10.0
├☑ pyqtgraph         0.14.0
├☑ mne-qt-browser    0.7.5
├☑ ipywidgets        8.1.8
├☑ trame_client      3.13.2
├☑ trame_server      3.12.5
├☑ trame_vtk         2.11.8
└☑ trame_vuetify     3.2.2

Ecosystem (optional)
├☑ neo               0.14.4
├☑ eeglabio          0.1.3
├☑ edfio             0.4.13
├☑ curryreader       0.1.2
├☑ mffpy             0.11.0
├☑ pybv              0.8.1
├☑ pymef             1.4.8
├☑ antio             0.7.0
├☑ defusedxml        0.7.1
└☐ unavailable       mne-bids, mne-nirs, mne-features, mne-connectivity, mne-icalabel, mne-bids-pipeline

You need pytest-cov (and possibly some other packages), I recommend uv sync to install the most important dependencies.

Thanks!
I see now that I missed: pip install --group=test