From b28dfdeb607b790712716b6dc97e2daa24c4a44e Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Wed, 16 Sep 2026 21:53:47 +0200 Subject: [PATCH] gatelock: annotate a fixture param ruff 0.16.8 now flags; TS workflows dispatchable The ruff bump surfaced one ANN001 in test_window.py. ts-core / web-ui / ts-config workflows gain workflow_dispatch so a workflow-only change (like the last commit, which touched no ts_core/** path and therefore never ran) can be re-verified on demand. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01DnAYyNH1Sm4iJNidfYbrZJ --- .github/workflows/ts-config-tests.yml | 1 + .github/workflows/ts-core-tests.yml | 1 + .github/workflows/web-ui-tests.yml | 1 + gatelock/gatelock/tests/test_window.py | 4 +++- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ts-config-tests.yml b/.github/workflows/ts-config-tests.yml index 5b373bf..3f50fa3 100644 --- a/.github/workflows/ts-config-tests.yml +++ b/.github/workflows/ts-config-tests.yml @@ -7,6 +7,7 @@ on: pull_request: branches: [main] paths: ['ts_config/**'] + workflow_dispatch: jobs: test: diff --git a/.github/workflows/ts-core-tests.yml b/.github/workflows/ts-core-tests.yml index e3e6e8d..d674222 100644 --- a/.github/workflows/ts-core-tests.yml +++ b/.github/workflows/ts-core-tests.yml @@ -7,6 +7,7 @@ on: pull_request: branches: [main] paths: ['ts_core/**', 'ts_config/**'] + workflow_dispatch: jobs: test: diff --git a/.github/workflows/web-ui-tests.yml b/.github/workflows/web-ui-tests.yml index ad8141f..39ca689 100644 --- a/.github/workflows/web-ui-tests.yml +++ b/.github/workflows/web-ui-tests.yml @@ -7,6 +7,7 @@ on: pull_request: branches: [main] paths: ['web_ui/**', 'ts_config/**'] + workflow_dispatch: jobs: test: diff --git a/gatelock/gatelock/tests/test_window.py b/gatelock/gatelock/tests/test_window.py index 3bfb62f..ca31a18 100644 --- a/gatelock/gatelock/tests/test_window.py +++ b/gatelock/gatelock/tests/test_window.py @@ -102,7 +102,9 @@ class TestSetup: topmost_on = True mock_root.attributes.assert_any_call("-topmost", topmost_on) - def test_suspend_handles_are_the_armed_collaborators(self, mock_root) -> None: + def test_suspend_handles_are_the_armed_collaborators( + self, mock_root: MagicMock + ) -> None: """An app that suspends the lock stops the very loop and watcher it arms.""" window, _hooks = make_window(mock_root, config=LockConfig(mode="soft"))