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."""