MCPcopy Create free account
hub / github.com/FastLED/FastLED / __init__

Method __init__

ci/tools/gh_debug.py:66–80  ·  view source on GitHub ↗

Initialize debugger. Args: run_id: GitHub run ID or URL max_errors: Maximum number of errors to collect before stopping context_lines: Lines of context before/after errors

(self, run_id: str, max_errors: int = 10, context_lines: int = 5)

Source from the content-addressed store, hash-verified

64 ]
65
66 def __init__(self, run_id: str, max_errors: int = 10, context_lines: int = 5):
67 """Initialize debugger.
68
69 Args:
70 run_id: GitHub run ID or URL
71 max_errors: Maximum number of errors to collect before stopping
72 context_lines: Lines of context before/after errors
73 """
74 self.run_id = self._extract_run_id(run_id)
75 self.max_errors = max_errors
76 self.context_lines = context_lines
77 self.repo = self._get_repo()
78 self.critical_errors: list[dict[str, str]] = []
79 self.warnings: list[dict[str, str]] = []
80 self.log_file: Optional[Path] = None
81
82 def _extract_run_id(self, run_input: str) -> str:
83 """Extract run ID from URL or return as-is if already an ID."""

Callers

nothing calls this directly

Calls 2

_extract_run_idMethod · 0.95
_get_repoMethod · 0.95

Tested by

no test coverage detected