Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #322

Merged
merged 8 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.8.6
rev: v0.9.1
hooks:
- id: ruff
- id: ruff-format
Expand Down
20 changes: 10 additions & 10 deletions recipes/mne-python/construct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ specs:
# Time-frequency analysis
- pactools =0.3.1
- tensorpac =0.6.5
- emd =0.7.0
- emd =0.8.0
- neurodsp =2.2.0
# - bycycle =1.1.0 # TODO: broken with latest SciPy
- fooof =1.0.0
Expand All @@ -109,8 +109,8 @@ specs:
# OpenNeuro.org data access
- openneuro-py =2024.2.0
# sleep staging
- sleepecg =0.5.8
- yasa =0.6.5
# - sleepecg =0.5.8 # TODO: not NumPy 2.0 compatible yet because of wfdb
# - yasa =0.6.5 # TODO: not NumPy 2.0 compatible yet because of sleepecg
# various biological signals (ECG, EOG, EMG, …)
- neurokit2 =0.2.10
- mnelab =0.9.2
Expand All @@ -121,8 +121,8 @@ specs:
- pybv =0.7.6
- eeglabio =0.0.3
- mffpy =0.10.0
- openmeeg =2.5.14
- python-neo =0.13.4
- openmeeg =2.5.15
# - python-neo =0.13.4 # TODO: Not NumPy 2.0 compatible yet
- nitime =0.11
- snirf =0.8.0
# <<< END RELATED SOFTWARE LIST >>>
Expand All @@ -134,7 +134,7 @@ specs:
- imageio-ffmpeg =0.5.1
- pandas =2.2.3
- polars =1.17.1
- scipy =1.15.0
- scipy =1.15.1
- openblas =0.3.28
- libblas =3.9.0=*openblas
- jupyter =1.1.1
Expand All @@ -149,7 +149,7 @@ specs:
- numba =0.60.0
- cython =3.0.11
# I/O
- pyxdf =1.16.8
- pyxdf =1.17.0
- openpyxl =3.1.5
- xlrd =2.0.1
# Statistics
Expand All @@ -174,7 +174,7 @@ specs:
- pyvista =0.44.2
- pyvistaqt =0.11.1
- trame =3.7.6
- trame-vtk =2.8.12
- trame-vtk =2.8.14
- trame-vuetify =2.8.0
- termcolor =2.5.0
- defusedxml =0.7.1
Expand All @@ -186,8 +186,8 @@ specs:
- pytest-qt =4.4.0
- pytest-timeout =2.3.1
- pre-commit =4.0.1
- ruff =0.8.6
- uv =0.5.15
- ruff =0.9.1
- uv =0.5.18
- check-manifest =0.50
- codespell =2.3.0
- py-spy =0.4.0
Expand Down
5 changes: 5 additions & 0 deletions tests/test_dev_installed.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
dep
for dep in deps.split()
if not re.match("mne-[0-9]+", dep)
# TODO because we don't install neo
and not dep.startswith("neo-")
and not dep.startswith("numpy-")
and not dep.startswith("pyxdf-")
and not dep.startswith("quantities-")
# Qt-related stuff
and not dep.startswith("sip-")
# and not on conda-forge yet
Expand Down
14 changes: 8 additions & 6 deletions tests/test_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ def check_min_version(package, min_version):
"""Check a minimum version."""
from packaging.version import parse

assert parse(package.__version__) >= parse(
min_version
), f"{package}: got {package.__version__} wanted {min_version}"
assert parse(package.__version__) >= parse(min_version), (
f"{package}: got {package.__version__} wanted {min_version}"
)


import mne
Expand Down Expand Up @@ -48,11 +48,13 @@ def check_min_version(package, min_version):
import emd
import neurodsp

# import bycycle
# import bycycle # TODO
import fooof
import openneuro
import sleepecg
import yasa

# import sleepecg # TODO
# import yasa # TODO
# import neo # TODO
import neurokit2
import questionary
import matplotlib.pyplot
Expand Down
Loading