Coverage for src / tracekit / reporting / formatting / standards.py: 100%
30 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 23:04 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-11 23:04 +0000
1"""Formatting standards."""
3from dataclasses import dataclass, field
4from enum import Enum
5from typing import Any
8class Severity(Enum):
9 """Severity levels."""
11 INFO = "info"
12 WARNING = "warning"
13 ERROR = "error"
14 CRITICAL = "critical"
15 SUCCESS = "success"
18@dataclass
19class ColorScheme:
20 """Color scheme for reports."""
22 primary: str = "#007ACC"
23 secondary: str = "#6C757D"
24 success: str = "#28A745"
25 warning: str = "#FFC107"
26 error: str = "#DC3545"
27 info: str = "#17A2B8"
30@dataclass
31class FormatStandards:
32 """Formatting standards for reports."""
34 title_size: int = 18
35 heading_size: int = 14
36 body_size: int = 10
37 code_font: str = "Courier New"
38 body_font: str = "Arial"
39 colors: ColorScheme = field(default_factory=ColorScheme)
42def apply_formatting_standards(content: Any, standards: FormatStandards | None = None) -> Any:
43 """Apply formatting standards to content."""
44 if standards is None:
45 standards = FormatStandards()
46 # Placeholder implementation
47 return content
50__all__ = [
51 "ColorScheme",
52 "FormatStandards",
53 "Severity",
54 "apply_formatting_standards",
55]