MCPcopy Index your code
hub / github.com/reflex-dev/reflex / should_run_lighthouse

Function should_run_lighthouse

tests/integration/lighthouse_utils.py:624–630  ·  view source on GitHub ↗

Check whether Lighthouse benchmarks are enabled. Returns: Whether Lighthouse benchmarks are enabled.

()

Source from the content-addressed store, hash-verified

622
623
624def 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
633def format_score(score: float | None) -> str:

Callers 1

test_lighthouse.pyFile · 0.85

Calls 2

lowerMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected