From 75ec48d1d7350f8488d488f3f4858408a185323a Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Wed, 28 Oct 2026 10:52:55 -0400 Subject: [PATCH 1/3] fix: declare in pyproject.toml too that we dropped py 3.9 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", From 04b2e66f27d090e3a67484d38480afd8adfc89e7 Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Wed, 28 Oct 2026 14:04:28 -0400 Subject: [PATCH 2/3] fix: run ruff-format before ruff to avoid double reports --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From de0b0143b3e198ab127045480875400b2a2d86e2 Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Wed, 28 Oct 2026 14:05:49 -0400 Subject: [PATCH 3/3] fix: add explicit strict to zip to address ruff warning B905 --- py/test/test_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)