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

Function _env_default_max_bytes

ci/optimization_report.py:24–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23
24def _env_default_max_bytes() -> int:
25 raw = os.environ.get("FL_OPT_REPORT_MAX_BYTES")
26 if raw is None:
27 return DEFAULT_MAX_REPORT_BYTES
28 try:
29 value = int(raw)
30 except ValueError:
31 return DEFAULT_MAX_REPORT_BYTES
32 return max(value, 0)
33
34
35def parse_args(argv: list[str] | None = None) -> argparse.Namespace:

Callers 1

parse_argsFunction · 0.85

Calls 2

maxFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected