Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#658)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.6.0...v5.0.0)
- [github.com/psf/black: 24.4.2 → 24.10.0](psf/black@24.4.2...24.10.0)
- [github.com/PyCQA/flake8: 7.1.0 → 7.1.1](PyCQA/flake8@7.1.0...7.1.1)
- [github.com/astral-sh/ruff-pre-commit: v0.5.0 → v0.6.9](astral-sh/ruff-pre-commit@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 <a.bruno@aluno.ufabc.edu.br>
Co-authored-by: Bru <b.aristimunha@gmail.com>
  • Loading branch information
3 people authored Oct 18, 2024
1 parent eb222df commit 98d041a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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: [
Expand All @@ -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 ]
Expand Down
2 changes: 1 addition & 1 deletion moabb/tests/util_braindecode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 98d041a

Please sign in to comment.