Check if a framework is a built-in PlatformIO framework that should not be resolved to URLs.
(self, framework_name: str)
| 1430 | ) |
| 1431 | |
| 1432 | def _is_builtin_framework(self, framework_name: str) -> bool: |
| 1433 | """Check if a framework is a built-in PlatformIO framework that should not be resolved to URLs.""" |
| 1434 | if not framework_name: |
| 1435 | return False |
| 1436 | # List of built-in PlatformIO frameworks that should remain as names, not URLs |
| 1437 | builtin_frameworks = { |
| 1438 | "arduino", |
| 1439 | "espidf", |
| 1440 | "cmsis", |
| 1441 | "libopencm3", |
| 1442 | "mbed", |
| 1443 | "freertos", |
| 1444 | "simba", |
| 1445 | "wiringpi", |
| 1446 | "pumbaa", |
| 1447 | "energia", |
| 1448 | "spl", |
| 1449 | "stm32cube", |
| 1450 | "zephyr", |
| 1451 | "framework-arduinoespressif32", |
| 1452 | "framework-espidf", |
| 1453 | } |
| 1454 | return framework_name.lower() in builtin_frameworks |
| 1455 | |
| 1456 | def _is_git_url(self, url: str) -> bool: |
| 1457 | """Check if a URL is a git repository URL.""" |
no outgoing calls
no test coverage detected