unbreak ci lighthouse
This commit is contained in:
parent
24363170d3
commit
01555bd780
@ -42,8 +42,7 @@ def get_lighthouse_scores(directory_path: str | Path) -> dict:
|
|||||||
try:
|
try:
|
||||||
for filename in directory_path.iterdir():
|
for filename in directory_path.iterdir():
|
||||||
if filename.suffix == ".json" and filename.stem != "manifest":
|
if filename.suffix == ".json" and filename.stem != "manifest":
|
||||||
file_path = directory_path / filename
|
data = json.loads(filename.read_text())
|
||||||
data = json.loads(file_path.read_text())
|
|
||||||
# Extract scores and add them to the dictionary with the filename as key
|
# Extract scores and add them to the dictionary with the filename as key
|
||||||
scores[data["finalUrl"].replace("http://localhost:3000/", "/")] = {
|
scores[data["finalUrl"].replace("http://localhost:3000/", "/")] = {
|
||||||
"performance_score": data["categories"]["performance"]["score"],
|
"performance_score": data["categories"]["performance"]["score"],
|
||||||
|
@ -16,8 +16,8 @@ from ..base import (
|
|||||||
|
|
||||||
|
|
||||||
def on_value_event_spec(
|
def on_value_event_spec(
|
||||||
value: Var[List[int | float]],
|
value: Var[List[Union[int, float]]],
|
||||||
) -> Tuple[Var[List[int | float]]]:
|
) -> Tuple[Var[List[Union[int, float]]]]:
|
||||||
"""Event handler spec for the value event.
|
"""Event handler spec for the value event.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
Reference in New Issue
Block a user