diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2779172..9757b3e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,9 +11,9 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.8.3 hooks: + - id: ruff-format - id: ruff args: [ --fix ] - - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy rev: v1.13.0 hooks: diff --git a/py/test/test_cli.py b/py/test/test_cli.py index 70f5559..f85f6aa 100644 --- a/py/test/test_cli.py +++ b/py/test/test_cli.py @@ -24,7 +24,9 @@ def check_output(self, jpath: str, text: str = "go forward ten meters") -> None: self.assertTrue(result) self.assertEqual(result["t"], text) for word, ref in zip( - (w for w in result["w"] if w["t"] != ""), text.split() + (w for w in result["w"] if w["t"] != ""), + text.split(), + strict=False, ): self.assertEqual(baseword(word), ref) diff --git a/pyproject.toml b/pyproject.toml index 1c38e1f..eb347be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,6 +11,7 @@ name = "soundswallower" dynamic = ["version"] description = "An even smaller speech recognizer" readme = "README.md" +requires-python = ">= 3.10" authors = [ {name = "David Huggins-Daines", email = "dhd@ecolingui.ca"} ] @@ -20,7 +21,6 @@ classifiers = [ "Programming Language :: C", "Programming Language :: Cython", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12",