Katolus / functions

Line too long FLK-E501
Style
Minor
2 years ago3 years old
line too long (123 > 120 characters)
64            # Update this once there are proper models for cloud functions
65            name = function["labels"][CloudFunctionLabel.NAME]
66            user.inform(
67                f"Function ({name}) is deployed in a {function['runtime']} and was last update at {function['updateTime']}"68            )
69    else:
70        raise errors.UnknownServiceError(service=service)
line too long (161 > 120 characters)
20    "name": "projects/central-324313/locations/australia-southeast1/functions/http",
21    "runtime": "python38",
22    "serviceAccountEmail": "[email protected]",
23    "sourceUploadUrl": "https://storage.googleapis.com/gcf-upload-australia-south-13114231-7289-4d69-a498-302b6920e595/3550d2a1-b89b-4b08-93af-1ea2d84a15eb.zip",24    "status": "ACTIVE",
25    "timeout": "60s",
26    "updateTime": "2022-01-14T23:34:56.221Z",
line too long (127 > 120 characters)
 80
 81class FunctionNotFoundError(FunctionBaseError):
 82    code = "functions.not_found"
 83    msg_template = "Function '{name}' not found in registry. Try running `functions sync local` to synchronize built functions" 84
 85
 86class FunctionImageNotFoundError(FunctionBaseError):
line too long (124 > 120 characters)
10
11class ComponentVersionError(FunctionBaseError):
12    code = "docker.engine_version_error"
13    msg_template = "It looks like `{component}'s` version is too old ({version}). Please update to - {min_version} minimum."
line too long (151 > 120 characters)
131    # Inform user of functions deployed to GCP and matching registry requirements
132    if not_in_registry != []:
133        user.inform(
134            f"There are several functions deployed to GCP that matches registry requirements, but are not present in this registry : {not_in_registry}"135        )
136    logs.debug("Syncing GCP functions finished...")