Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 1ba4dee

Browse files
will-ricebrentspell
authored andcommitted
fixed name collisions in tests
1 parent 4f11ed4 commit 1ba4dee

24 files changed

+46
-47
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ jobs:
2828
flake8
2929
- run: |
3030
source ~/venv/bin/activate
31-
ls -1 */__init__.py | sed -E 's|/.*||' | xargs black
31+
black spokestack tests
3232
- run: |
3333
source ~/venv/bin/activate
34-
ls -1 */__init__.py | sed -E 's|/.*||' | xargs mypy
34+
mypy spokestack tests
3535
- run: |
3636
source ~/venv/bin/activate
3737
python -m pytest --cov=spokestack

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ repos:
3535
entry: python -m pytest --cov=spokestack --cov-report=term-missing --cov-fail-under=99
3636
pass_filenames: false
3737
always_run: true
38+
- id: detect_print_statement
39+
name: detect_print_statement
40+
language: pygrep
41+
types: [python]
42+
exclude: "examples"
43+
args: [-i, --multiline]
44+
entry: "print(.*)"
3845
- repo: https://github.com/syntaqx/git-hooks
3946
rev: v0.0.16
4047
hooks:

tests/asr/__init__.py

Whitespace-only changes.

tests/asr/google/__init__.py

Whitespace-only changes.

tests/asr/google/test_google_speech_recognizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
from unittest import mock
55

6-
import numpy as np
6+
import numpy as np # type: ignore
77

88
from spokestack.asr.google.speech_recognizer import GoogleSpeechRecognizer
99
from spokestack.context import SpeechContext

tests/asr/keyword/__init__.py

Whitespace-only changes.
File renamed without changes.

tests/asr/spokestack/__init__.py

Whitespace-only changes.

tests/asr/spokestack/test_cloud_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from unittest import mock
66

77
import numpy as np # type: ignore
8-
import pytest
8+
import pytest # type: ignore
99

1010
from spokestack.asr.spokestack.cloud_client import APIError, CloudClient
1111

tests/io/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)