Coverage for lintro / enums / tool_status.py: 100%
7 statements
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
« prev ^ index » next coverage.py v7.13.0, created at 2026-04-03 18:53 +0000
1"""Tool health-check status for the doctor command.
3Replaces raw string literals ("ok", "missing", etc.) with a type-safe
4enum so that typos are caught at import time rather than silently
5producing wrong comparisons.
6"""
8from __future__ import annotations
10from enum import StrEnum, auto
13class ToolStatus(StrEnum):
14 """Status of a single tool after a health check."""
16 OK = auto()
17 MISSING = auto()
18 OUTDATED = auto()
19 UNKNOWN = auto()