Skip to content

Commit

Permalink
ruff-pre-commit updating v0.7.4 -> v0.8.6 (#390)
Browse files Browse the repository at this point in the history
* ruff-pre-commit updating v0.7.4 -> v0.8.0

* Update .pre-commit-config.yaml

* .pre-commit-config.yaml: Ruff v0.8.3

* ruff v0.8.5

* macOS eSpeak-NG v1.52.0 has 141 voices

* Linux eSpeak-NG v1.51 has 131 voices

* Ruff v0.8.6
  • Loading branch information
cclauss authored Jan 5, 2025
1 parent fbfae25 commit fb94674
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ repos:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.6
hooks: # Format before linting
- id: ruff
- id: ruff-format
Expand Down
6 changes: 3 additions & 3 deletions tests/test_engines.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ def test_espeak_voices(driver_name) -> None:
# Get and validate the number of voices
voices = engine.getProperty("voices")
print(f"{engine} has {len(voices) = } voices.")
# Linux eSpeak-NG v1.50 has 109 voices,
# macOS eSpeak-NG v1.51 has 131 voices,
# Linux eSpeak-NG v1.51 has 131 voices,
# macOS eSpeak-NG v1.52.0 has 141 voices,
# Windows eSpeak-NG v1.52-dev has 221 voices.
assert len(voices) in {109, 131, 221}, "Unexpected number of voices"
assert len(voices) in {131, 141, 221}, "Unexpected number of voices"

# Define the expected English voice IDs (excluding Caribbean for now as not in some envs
# Linux eSpeak-NG v1.50 has 7 English voices,
Expand Down

0 comments on commit fb94674

Please sign in to comment.