Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 22, 2022
1 parent 6eea5cc commit 494dad1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lightning_app/runners/cloud.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import fnmatch
import json
import os
import random
import string
import sys
import time
import json
from dataclasses import dataclass
from pathlib import Path
from typing import Any, Callable, List, Optional, Union
Expand Down Expand Up @@ -151,7 +151,7 @@ def _get_work_specs(app: LightningApp) -> List[V1Work]:


def _to_web_ready_dict(swagger_object):
"""Returns the swagger object properties as a dict with correct object names"""
"""Returns the swagger object properties as a dict with correct object names."""

if isinstance(swagger_object, list):
return [_to_web_ready_dict(x) for x in swagger_object]
Expand All @@ -176,7 +176,7 @@ def _to_web_ready_dict(swagger_object):
def _generate_works_json(filepath: str) -> str:
app = load_app_from_file(filepath)
works = _get_work_specs(app)
works_json = json.dumps(_to_web_ready_dict(works), separators=(',', ':'))
works_json = json.dumps(_to_web_ready_dict(works), separators=(",", ":"))
return works_json


Expand Down

0 comments on commit 494dad1

Please sign in to comment.