From 25a5f534f2e5682ead4ba4ac23f48423e01c362f Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sat, 21 Nov 2026 09:44:15 +0100 Subject: [PATCH] Fit the line cap; sort requirements Co-Authored-By: Claude Opus 5.5 --- requirements.txt | 2 +- screen_locker/tests/conftest.py | 3 +-- screen_locker/tests/test_lock_credit.py | 5 ++--- .../workout_app/lib/screens/settings_screen.dart | 3 +-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/requirements.txt b/requirements.txt index 2e73b07..51aaa11 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,8 +7,8 @@ crdt-sync @ git+https://github.com/kuhyx/utils@crdt-sync-v0.11.1#subdirectory=cr earned-time @ git+https://github.com/kuhyx/utils@earned-time-v0.22.0#subdirectory=earned_time freedays @ git+https://github.com/kuhyx/utils@freedays-v0.4.3#subdirectory=freedays gatelock @ git+https://github.com/kuhyx/utils@gatelock-v0.16.0#subdirectory=gatelock -kuhy-credit @ git+https://github.com/kuhyx/utils@kuhy-credit-v0.3.1#subdirectory=kuhy_credit holds @ git+https://github.com/kuhyx/utils@holds-v0.1.0#subdirectory=holds +kuhy-credit @ git+https://github.com/kuhyx/utils@kuhy-credit-v0.3.1#subdirectory=kuhy_credit mcp==2.3.0 mypy==2.4.1 pre-commit==4.7.0 diff --git a/screen_locker/tests/conftest.py b/screen_locker/tests/conftest.py index c6907c4..eb682ba 100644 --- a/screen_locker/tests/conftest.py +++ b/screen_locker/tests/conftest.py @@ -96,8 +96,7 @@ def _block_real_tk_and_exit() -> Iterator[None]: # The startup early-exit checks moved to _startup_checks; sys.exit is # bound there now, so it needs blocking separately. stack.enter_context(patch("screen_locker._startup_checks.sys.exit")) - # The credit logo is a real tk.Canvas from kuhy_credit, outside the - # patched modules above, so it is swapped wholesale too. + # kuhy_credit's logo is a real tk.Canvas: swap it too. stack.enter_context(patch("screen_locker._credit.KuhyCredit")) yield diff --git a/screen_locker/tests/test_lock_credit.py b/screen_locker/tests/test_lock_credit.py index 24872c7..1454e8a 100644 --- a/screen_locker/tests/test_lock_credit.py +++ b/screen_locker/tests/test_lock_credit.py @@ -37,9 +37,7 @@ def test_place_credit_puts_the_logo_bottom_right() -> None: credit_cls.assert_called_once_with(parent, theme="dark", size=40) config.type_px.assert_called_once_with("display") - credit.place.assert_called_once_with( - relx=1, rely=1, x=-24, y=-24, anchor="se" - ) + credit.place.assert_called_once_with(relx=1, rely=1, x=-24, y=-24, anchor="se") @pytest.mark.usefixtures("mock_sys_exit") @@ -89,6 +87,7 @@ def test_status_window_root_gets_a_logo(mock_tk: MagicMock) -> None: def test_heat_skip_prompt_gets_a_logo(mock_tk: MagicMock) -> None: """The fullscreen heat-skip prompt shows the logo too.""" + class _Host(_heat_skip.HeatSkipMixin): pass diff --git a/stronglift_replacement/workout_app/lib/screens/settings_screen.dart b/stronglift_replacement/workout_app/lib/screens/settings_screen.dart index 8bf76a4..e3851a9 100644 --- a/stronglift_replacement/workout_app/lib/screens/settings_screen.dart +++ b/stronglift_replacement/workout_app/lib/screens/settings_screen.dart @@ -240,8 +240,7 @@ class _SettingsScreenState extends State { const SizedBox(height: 20), const _SandboxSection(), ], - // kuhy's shared credit logo (kuhy_credit, kuhyx/utils); the - // app has no about screen, so it closes the Settings list. + // kuhy's shared credit logo; no about screen, so it ends here. const SizedBox(height: 20), const KuhyCredit(), ],