mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-19 02:54:22 +01:00
Some checks are pending
dependency freshness / dependencies on newest stable (push) Waiting to run
md-naming / markdown naming convention (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (flutter, flutter-analyze, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (mypy, mypy, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (pylint, pylint, ) (push) Waiting to run
pre-commit / pre-commit (${{ matrix.group }}) (rest, , mypy,pylint,flutter-analyze) (push) Waiting to run
Tests / test (push) Waiting to run
Tests / lock-popup-safety (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (0) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (1) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (2) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (3) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (4) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (5) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (6) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (7) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (8) (push) Waiting to run
Tests / flutter test (shard ${{ matrix.shard }}) (9) (push) Waiting to run
Tests / flutter-coverage (push) Blocked by required conditions
Tests / web-coverage (push) Waiting to run
repo-contract / repo contract (push) Waiting to run
gatelock error_report: uncaught, thread and Tk callback errors plus a frozen lock window over 1 s go to the app-errors spool. The pre-commit pylint env moves to gatelock 0.16.0, the version requirements pin. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
930 B
Python
34 lines
930 B
Python
"""Error and slow-wait reporting for screen-locker (utils DOCS-app-errors.md).
|
|
|
|
``install`` runs once from the CLI entry point: uncaught, thread and Tk
|
|
callback errors, and a Tk loop frozen over 1 s, go to the app-errors spool,
|
|
from which the PC's ingest files a board ticket. Only the CLI installs it, so
|
|
tests that build a lock window never touch the real spool.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from gatelock import error_report
|
|
|
|
APP = "screen-locker"
|
|
REPO = "kuhyx/screen-locker"
|
|
|
|
|
|
@dataclass
|
|
class _Slot:
|
|
"""Holds the process's reporter once installed."""
|
|
|
|
reporter: error_report.Reporter | None = None
|
|
|
|
|
|
#: The installed reporter (``SLOT.reporter``); None until ``install``.
|
|
SLOT = _Slot()
|
|
|
|
|
|
def install() -> error_report.Reporter:
|
|
"""Hook this process's errors once; return the reporter."""
|
|
SLOT.reporter = error_report.install(APP, REPO)
|
|
return SLOT.reporter
|