Check whether Lighthouse benchmarks are enabled. Returns: Whether Lighthouse benchmarks are enabled.
()
| 622 | |
| 623 | |
| 624 | def should_run_lighthouse() -> bool: |
| 625 | """Check whether Lighthouse benchmarks are enabled. |
| 626 | |
| 627 | Returns: |
| 628 | Whether Lighthouse benchmarks are enabled. |
| 629 | """ |
| 630 | return os.environ.get(LIGHTHOUSE_RUN_ENV_VAR, "").lower() in TRUTHY_ENV_VALUES |
| 631 | |
| 632 | |
| 633 | def format_score(score: float | None) -> str: |
no test coverage detected