Skip to content

Commit

Permalink
python code style
Browse files Browse the repository at this point in the history
  • Loading branch information
MacDada committed Jun 18, 2023
1 parent b03462e commit bfe6205
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/pio_extra_script_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def get_config_value_as_list(self, name: str) -> list[str]:
while my `custom_system_packages` is a string…
https://community.platformio.org/t/custom-platformio-ini-options-as-list-str-not-str/34380
"""

return [
value
for value
Expand All @@ -51,12 +52,14 @@ def get_config_value(self, name: str, default: str = ''):
"""
https://docs.platformio.org/en/latest/scripting/examples/platformio_ini_custom_options.html
"""

return self.env.GetProjectOption(name, default=default)

def get_platform(self) -> PlatformBase:
"""
The platform is the same for all the envs.
"""

return self.env.PioPlatform()

def list_available_packages(self) -> list:
Expand All @@ -77,6 +80,7 @@ def mark_packages_as_system(self, packages: list[str]) -> None:
"""
See :meth:`~pio_extra_script_helper.Helper.mark_package_as_system`
"""

for package in packages:
self.mark_package_as_system(package)

Expand Down

0 comments on commit bfe6205

Please sign in to comment.