From 98d041aca24ca4b26d0401d2f03f677fb53401e2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 18 Oct 2024 17:55:39 +0100 Subject: [PATCH] [pre-commit.ci] pre-commit autoupdate (#658) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate 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) * solving issue with type comparison --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bru Co-authored-by: Bru --- .pre-commit-config.yaml | 8 ++++---- moabb/tests/util_braindecode.py | 2 +- 2 files changed, 5 insertions(+), 5 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 ] 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."""