Skip to content

Commit

Permalink
Implement token_transcribe & rudimentary tests, rename parser_transcribe
Browse files Browse the repository at this point in the history
  • Loading branch information
sultur committed Aug 29, 2023
1 parent a3a9055 commit 8faebed
Show file tree
Hide file tree
Showing 5 changed files with 442 additions and 81 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ repos:
- id: debug-statements
# Code formatting
- repo: https://github.com/psf/black
rev: "23.3.0"
rev: "23.7.0"
hooks:
- id: black
language_version: python3.9
# Code linting & import sorting
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.274"
rev: "v0.0.286"
hooks:
- id: ruff
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ignore = [
"D", # Docstring style rules
"TD", # Pedantic TODO comment rules
"FIX002", # Line contains TODO rule
"FIX004", # Line contains HACK rule
"S101", # Disallow assert statements rule
"TRY", # Pedantic exception rules
"EM", # Pedantic exception message rules
Expand Down Expand Up @@ -121,7 +122,7 @@ parsing = ["tokenizer", "reynir", "islenska"]
# Dev dependencies
dev = [
"pytest>=7.2.1",
"ruff>=0.0.274",
"ruff>=0.0.286",
# Pre-commit hook
"pre-commit",
"black",
Expand Down
3 changes: 0 additions & 3 deletions src/icespeak/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@
from .transcribe import DefaultTranscriber, gssml
from .tts import text_to_speech

fast_transcribe = DefaultTranscriber.token_transcribe

__all__ = (
"GreynirSSMLParser",
"text_to_speech",
"gssml",
"DefaultTranscriber",
"fast_transcribe",
)
Loading

0 comments on commit 8faebed

Please sign in to comment.