From 4a8b4fcee5d3cebd651c75352a2e785c5932796c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 21:15:29 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/psf/black: 24.4.2 → 24.10.0](https://github.com/psf/black/compare/24.4.2...24.10.0) - [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](https://github.com/PyCQA/flake8/compare/7.1.0...7.1.1) - [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.6.9](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.0...v0.6.9) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c59f216a6..c8e2ea27a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ exclude: ".*svg" repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-yaml - id: check-json @@ -35,7 +35,7 @@ repos: - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 24.10.0 hooks: - id: black language_version: python3 @@ -54,7 +54,7 @@ repos: - id: isort - repo: https://github.com/PyCQA/flake8 - rev: 7.1.0 + rev: 7.1.1 hooks: - id: flake8 additional_dependencies: [ @@ -69,7 +69,7 @@ repos: exclude: ^docs/ | ^setup\.py$ | - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.5.0 + rev: v0.6.9 hooks: - id: ruff args: [ --fix, --exit-non-zero-on-fix, --ignore, E501 ] From 5f9890ae083de1bb269e887fbcf144426c3ab8fb Mon Sep 17 00:00:00 2001 From: Bru Date: Fri, 18 Oct 2024 18:52:23 +0200 Subject: [PATCH 2/2] solving issue with type comparison --- moabb/tests/util_braindecode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moabb/tests/util_braindecode.py b/moabb/tests/util_braindecode.py index c4423b5ec..8076164fb 100644 --- a/moabb/tests/util_braindecode.py +++ b/moabb/tests/util_braindecode.py @@ -125,7 +125,7 @@ def test_type_create_from_X_y_vs_transfomer(self, data): transformer = BraindecodeDatasetLoader() dataset_trans = transformer.fit(X=X_train, y=y_train).transform(X_train) assert isinstance(dataset_trans, BaseConcatDataset) - assert type(dataset_trans) == type(dataset) + assert isinstance(type(dataset_trans), type(dataset)) def test_wrong_input(self): """Test that an invalid input raises a ValueError."""