From edaf88819ba530f9491bd7172905720d429bf77d Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Fri, 9 Aug 2024 15:41:21 -0400 Subject: [PATCH] fixing style --- .gitignore | 5 +++++ .pre-commit-config.yaml | 2 +- pyproject.toml | 1 + src/tests/audio/tasks/text_to_speech_test.py | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4ddeae03..cd971514 100644 --- a/.gitignore +++ b/.gitignore @@ -173,3 +173,8 @@ docs/ # Speechbrain models pretrained_models src/tests/audio/tasks/pretrained_models/ + +# testmon +.testmondata +.testmondata-shm +.testmondata-wal diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2847615a..77e87ebc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,7 +78,7 @@ repos: hooks: - id: pytest name: pytest - entry: poetry run pytest + entry: poetry run pytest --testmon language: system types: [python] pass_filenames: false diff --git a/pyproject.toml b/pyproject.toml index 37be721e..7671e7d7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,6 +70,7 @@ ruff = "~=0.3" codespell = "~=2.3" jupyter = "~=1.0" ipywidgets = "~=8.1" +pytest-testmon = "~=2.1.1" [tool.poetry.group.docs] optional = true diff --git a/src/tests/audio/tasks/text_to_speech_test.py b/src/tests/audio/tasks/text_to_speech_test.py index 2832f43f..a695fd69 100644 --- a/src/tests/audio/tasks/text_to_speech_test.py +++ b/src/tests/audio/tasks/text_to_speech_test.py @@ -12,7 +12,7 @@ @pytest.fixture def hf_model() -> HFModel: - """Fixture for HF model.""" + """Fixture for the HF model.""" return HFModel(path_or_uri="suno/bark-small", revision="main") def test_synthesize_texts(hf_model: HFModel) -> None: