Option C Tools
Loading...
Searching...
No Matches
oct_health.py File Reference

Go to the source code of this file.

Classes

class  oct.health.oct_health._HealthLineMap

Namespaces

namespace  oct
namespace  oct.health
namespace  oct.health.oct_health

Functions

Dict[str, Any] oct.health.oct_health.check_lint_health (Path project_root, LinterContext ctx, bool verbose=False, Optional[set] exclude_dirs=None, Optional[list] wildcard_exclude=None, Optional[dict] active_rules=None)
Dict[str, Any] oct.health.oct_health.check_fixable_health (Path project_root, LinterContext ctx, Optional[set] exclude_dirs=None, Optional[list] wildcard_exclude=None, Optional[dict] active_rules=None, bool verbose=False)
Dict[str, Any] oct.health.oct_health.check_docs_health (Path project_root, *, bool production_mode=False)
Dict[str, Any] oct.health.oct_health.check_test_health (Path project_root, int timeout=300, *, Optional[float] coverage_threshold=None, bool production_mode=False, Optional[str] coverage_target=None)
Dict[str, Any] oct.health.oct_health.check_compat_health ()
Dict[str, Any] oct.health.oct_health.check_venv_health (Path project_root)
Dict[str, Any] oct.health.oct_health.check_git_health (Path project_root)
Optional[dict] oct.health.oct_health._load_octrc_for_health (Path project_root)
tuple oct.health.oct_health._build_health_template (str project_name, List[str] excluded_dirs, List[str] disabled_rules, List[str] active_checks, List[str] fixable_names, bool use_color)
str oct.health.oct_health._pct_str (int count, int total)
None oct.health.oct_health._print_terminal_report (Dict[str, Any] report, bool verbose)
None oct.health.oct_health._print_json_report (Dict[str, Any] report)
None oct.health.oct_health.run_health (Path project_root, bool json_mode=False, bool verbose=False, int|None test_timeout=None, bool log_output=False)

Variables

 oct.health.oct_health._COVERAGE_TOTAL_RE = re.compile(r"^TOTAL\s+\d+\s+\d+\s+(\d+(?:\.\d+)?)%", re.MULTILINE)
list oct.health.oct_health._HEALTH_CHECKS
dict oct.health.oct_health._FIX_LABELS
list oct.health.oct_health._DOC_FILES
dict oct.health.oct_health._GIT_LABELS