Skip to content

Commit

Permalink
Fix pre-commit issues present in develop (#967)
Browse files Browse the repository at this point in the history
Signed-off-by: Fabrice Normandin <fabrice.normandin@gmail.com>
  • Loading branch information
lebrice authored Jul 11, 2022
1 parent 5fb2b4e commit e809cf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repos:
rev: v2.1.0
hooks:
- id: codespell
args: ["--skip", "*.html,*.ipynb,dashboard/src/.yarn/**,dashboard/build/**", "--ignore-words-list=hist,wont"]
args: ["--skip", "*.html,*.ipynb,dashboard/src/.yarn/**,dashboard/build/**,dashboard/src/src/__tests__/**", "--ignore-words-list=hist,wont"]
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
Expand Down
8 changes: 6 additions & 2 deletions tests/unittests/core/database/test_ephemeraldb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
import pytest

from orion.core.io.database import Database
from orion.core.io.database.ephemeraldb import EphemeralCollection, EphemeralDocument
from orion.core.io.database.ephemeraldb import (
EphemeralCollection,
EphemeralDB,
EphemeralDocument,
)


@pytest.fixture(scope="module", autouse=True)
Expand Down Expand Up @@ -49,7 +53,7 @@ def collection(document, db_type):


def test_repr(orion_db: EphemeralDB):
assert str(orion_db) == f"EphemeralDB()"
assert str(orion_db) == "EphemeralDB()"


@pytest.mark.usefixtures("clean_db")
Expand Down

0 comments on commit e809cf6

Please sign in to comment.