MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _css_defined_classes

Function _css_defined_classes

scripts/theme_gate.py:345–352  ·  view source on GitHub ↗
(root: Path)

Source from the content-addressed store, hash-verified

343
344
345def _css_defined_classes(root: Path) -> set[str]:
346 defined: set[str] = set()
347 assets = root / "assets"
348 if not assets.is_dir():
349 return defined
350 for p in [*assets.glob("*.css"), *assets.glob("*.css.liquid")]:
351 defined.update(key for _l, key in css_selectors(_read(p)) if key.startswith("."))
352 return defined
353
354
355def cases_e(root: Path) -> list[Case]:

Callers 1

cases_eFunction · 0.85

Calls 3

updateMethod · 0.80
css_selectorsFunction · 0.70
_readFunction · 0.70

Tested by

no test coverage detected