Coverage for lintro / ai / display / __init__.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-04-03 18:53 +0000

1"""AI output rendering package. 

2 

3Supports the following environments: 

4- Terminal: Rich Panels with section headers 

5- GitHub Actions: ``::group::`` / ``::endgroup::`` collapsible sections 

6- Markdown: ``<details><summary>`` collapsible sections 

7- JSON: Full data always included (handled separately in json_output) 

8 

9Used by both ``chk`` (summaries, explanations) and ``fmt`` (fix suggestions). 

10""" 

11 

12from lintro.ai.display.fixes import ( 

13 render_fixes, 

14 render_fixes_annotations, 

15 render_fixes_github, 

16 render_fixes_markdown, 

17 render_fixes_terminal, 

18) 

19from lintro.ai.display.shared import ( 

20 LEADING_NUMBER_RE, 

21 cost_str, 

22 is_github_actions, 

23 print_code_panel, 

24 print_section_header, 

25) 

26from lintro.ai.display.summary import ( 

27 render_summary, 

28 render_summary_annotations, 

29 render_summary_github, 

30 render_summary_markdown, 

31 render_summary_terminal, 

32) 

33from lintro.ai.display.validation import render_validation, render_validation_terminal 

34 

35__all__ = [ 

36 "LEADING_NUMBER_RE", 

37 "cost_str", 

38 "is_github_actions", 

39 "print_code_panel", 

40 "print_section_header", 

41 "render_fixes", 

42 "render_fixes_annotations", 

43 "render_fixes_github", 

44 "render_fixes_markdown", 

45 "render_fixes_terminal", 

46 "render_summary", 

47 "render_summary_annotations", 

48 "render_summary_github", 

49 "render_summary_markdown", 

50 "render_summary_terminal", 

51 "render_validation", 

52 "render_validation_terminal", 

53]