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

Class EnvironmentSection

ci/compiler/platformio_ini.py:73–122  ·  view source on GitHub ↗

Typed representation of an [env:*] section. Contains environment-specific build and configuration settings.

Source from the content-addressed store, hash-verified

71
72@dataclass
73class EnvironmentSection:
74 """
75 Typed representation of an [env:*] section.
76 Contains environment-specific build and configuration settings.
77 """
78
79 # Required/Core Options
80 name: str = "" # The environment name (e.g., "esp32s3" from "env:esp32s3")
81
82 # Platform Options
83 platform: Optional[str] = None
84 framework: Optional[str] = None
85 board: Optional[str] = None
86
87 # Inheritance
88 extends: Optional[str] = None
89
90 # Build Options
91 build_type: Optional[str] = None
92 build_flags: list[str] = field(default_factory=lambda: [])
93 build_src_filter: list[str] = field(default_factory=lambda: [])
94 targets: list[str] = field(default_factory=lambda: [])
95
96 # Library Options
97 lib_deps: list[str] = field(default_factory=lambda: [])
98 lib_ignore: list[str] = field(default_factory=lambda: [])
99 lib_extra_dirs: list[str] = field(default_factory=lambda: [])
100 lib_ldf_mode: Optional[str] = None
101
102 # Upload Options
103 upload_port: Optional[str] = None
104 upload_protocol: Optional[str] = None
105 upload_speed: Optional[str] = None
106
107 # Monitor Options
108 monitor_port: Optional[str] = None
109 monitor_speed: Optional[str] = None
110 monitor_filters: list[str] = field(default_factory=lambda: [])
111
112 # Board-specific Options
113 board_build_mcu: Optional[str] = None
114 board_build_f_cpu: Optional[str] = None
115 board_build_partitions: Optional[str] = None
116
117 # Extra Scripts and Tools
118 extra_scripts: list[str] = field(default_factory=lambda: [])
119 check_tool: Optional[str] = None
120
121 # Custom Options (for non-standard options)
122 custom_options: dict[str, str] = field(default_factory=lambda: {})
123
124
125@dataclass

Callers 1

_parse_env_sectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected