From 855ca5ea380498df0a3e1740a7b5134625e926e1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 6 Aug 2024 00:09:17 +0000 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#12777) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 2 +- tools/check_qt_import.sh | 5 ++++- tools/github_actions_env_vars.sh | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a28d4157c93..8f937143c53 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.5.5 + rev: v0.5.6 hooks: - id: ruff name: ruff lint mne diff --git a/tools/check_qt_import.sh b/tools/check_qt_import.sh index e28ad4d6c79..dde00f497e7 100755 --- a/tools/check_qt_import.sh +++ b/tools/check_qt_import.sh @@ -4,5 +4,8 @@ if [[ "$1" == "" ]]; then echo "Qt library must be provided as first argument" exit 1 fi +echo "Checking if Python-Qt binding $1 is available" +echo "" LD_DEBUG=libs python -c "from $1.QtWidgets import QApplication, QWidget; app = QApplication([])" -echo "Python-Qt binding $1 is available" +echo "" +echo "Python-Qt binding $1 is available!" diff --git a/tools/github_actions_env_vars.sh b/tools/github_actions_env_vars.sh index fd678c5af75..8b9fc8560e6 100755 --- a/tools/github_actions_env_vars.sh +++ b/tools/github_actions_env_vars.sh @@ -16,7 +16,7 @@ else # conda-like echo "MNE_QT_BACKEND=PyQt5" >> $GITHUB_ENV elif [[ "$MNE_CI_KIND" == "minimal" ]]; then echo "CONDA_ENV=tools/environment_minimal.yml" >> $GITHUB_ENV - echo "MNE_QT_BACKEND=PyQt5" >> $GITHUB_ENV + echo "MNE_QT_BACKEND=PySide6" >> $GITHUB_ENV else # conda, mamba (use warning level for completeness) echo "CONDA_ENV=environment.yml" >> $GITHUB_ENV echo "MNE_LOGGING_LEVEL=warning" >> $GITHUB_ENV