From f3ef0aea4d8726b68b58da1e667aacb539d83504 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 17 Nov 2026 12:49:35 +0000 Subject: [PATCH 1/2] Add a GitHub Pages landing page docs/index.html shows the repository's description and README, fetched from the GitHub API when the page loads, so it needs no upkeep. Publish it by setting GitHub Pages to deploy from main, /docs. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01TaG2mqJquVLHLtDme47bTA --- docs/.nojekyll | 0 docs/index.html | 136 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 136 insertions(+) create mode 100644 docs/.nojekyll create mode 100644 docs/index.html diff --git a/docs/.nojekyll b/docs/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..e3f36b2 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,136 @@ + + + + + + +socrtwo project + + + + +
+
+

Project

+

+
+ +
+

Loading the project description…

+ +
+ + + + From e83a6c4b6f15bce626026ca973bf3889d6ae8bce Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 02:49:07 +0000 Subject: [PATCH 2/2] Fix the failing ci check: unused noqa directives and a host-dependent test - ruff flags three `# noqa: DTZ00x` comments as unused (RUF100) because the DTZ rules are not enabled. Remove the directives and keep the reason for the naive datetimes as an ordinary comment. - test_open_without_ffmpeg_raises assumed the machine running the tests has no ffmpeg on PATH, so it failed wherever ffmpeg is installed. It now hides ffmpeg itself. Co-Authored-By: Claude Fable 5.2 Claude-Session: https://claude.ai/code/session_01TaG2mqJquVLHLtDme47bTA --- src/adhush/detect/jingle.py | 2 +- tests/unit/test_detectors.py | 4 ++-- tests/unit/test_platform_capture.py | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/adhush/detect/jingle.py b/src/adhush/detect/jingle.py index c2ce0dd..3cc7cdc 100644 --- a/src/adhush/detect/jingle.py +++ b/src/adhush/detect/jingle.py @@ -56,7 +56,7 @@ def tempo_stretch(blocks: list[int], factor: float) -> list[int]: def local_hour(wall: float) -> int: - return datetime.fromtimestamp(wall).hour # noqa: DTZ006 — the viewer's own clock, by design + return datetime.fromtimestamp(wall).hour # naive on purpose: the viewer's own clock @dataclass diff --git a/tests/unit/test_detectors.py b/tests/unit/test_detectors.py index 36d5037..59278e6 100644 --- a/tests/unit/test_detectors.py +++ b/tests/unit/test_detectors.py @@ -494,8 +494,8 @@ def test_hours_admit_a_sting_a_break_early_and_round_trip(self, tmp_path: Path) from adhush.config import JingleConfig from adhush.detect.jingle import JingleDetector, local_hour - nine = datetime(2026, 9, 18, 9, 5).timestamp() # noqa: DTZ001 — local, like the viewer's clock - two = datetime(2026, 9, 18, 14, 5).timestamp() # noqa: DTZ001 + nine = datetime(2026, 9, 18, 9, 5).timestamp() # naive: local, like the viewer's clock + two = datetime(2026, 9, 18, 14, 5).timestamp() assert local_hour(nine) == 9 and local_hour(two) == 14 cfg = JingleConfig(file=str(tmp_path / "jingles.tsv")) det = JingleDetector(cfg) diff --git a/tests/unit/test_platform_capture.py b/tests/unit/test_platform_capture.py index 3b97764..be2e643 100644 --- a/tests/unit/test_platform_capture.py +++ b/tests/unit/test_platform_capture.py @@ -114,7 +114,8 @@ def test_registry_builds_new_backends(self) -> None: ) assert isinstance(build_capture(CaptureConfig(backend="line_in")), LineInSource) - def test_open_without_ffmpeg_raises(self) -> None: - # This environment has no ffmpeg on PATH. + def test_open_without_ffmpeg_raises(self, monkeypatch: pytest.MonkeyPatch) -> None: + # Hide ffmpeg rather than assume the machine running the tests lacks it. + monkeypatch.setattr("adhush.capture.microphone.shutil.which", lambda _name: None) with pytest.raises(CaptureError, match="ffmpeg"): MicrophoneSource(CaptureConfig(), platform="linux").open()