Skip to content

Commit a800f75

Browse files
committed
style(linting): run autopep8
1 parent b9e6022 commit a800f75

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

libraries/cloudharness-common/cloudharness/infrastructure/k8s.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def get_pod_logs(pod_name, namespace=namespace):
7676
except kubernetes.client.rest.ApiException as e:
7777
if e.status == 400:
7878
return f"Pod {pod_name} has not emitted logs yet..."
79-
elif 400 < e.status < 500:
79+
elif 400 < e.status < 500:
8080
return str(e)
8181
raise Exception(e.status) from e
8282

tools/deployment-cli-tools/ch_cli_tools/codefresh.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def create_codefresh_deployment_scripts(root_paths, envs=(), include=(), exclude
130130
build_steps = {}
131131
has_overrides = any(DEFAULT_MERGE_PATH in root_path for root_path in root_paths)
132132
for i in range(len(root_paths)):
133-
133+
134134
root_path = root_paths[i]
135135
base_name = clean_image_name(basename(abspath(root_path))) if i < len(root_paths) - (2 if has_overrides else 1) else base_image_name
136136

@@ -160,7 +160,7 @@ def e2e_test_environment(app_config: ApplicationHarnessConfig, app_domain: str =
160160
env = get_app_environment(app_config, app_domain, False)
161161
return [f"{k}={env[k]}" for k in env]
162162

163-
def codefresh_app_build_spec(app_name, app_context_path, dockerfile_path="Dockerfile", base_name=None,
163+
def codefresh_app_build_spec(app_name, app_context_path, dockerfile_path="Dockerfile", base_name=None,
164164
helm_values: HarnessMainConfig = {}, dependencies=None, additional_tags=()):
165165
logging.info('Generating build script for ' + app_name)
166166
title = app_name.capitalize().replace(

tools/deployment-cli-tools/tests/test_helm.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ def test_collect_helm_values_noreg_noinclude(tmp_path):
149149
assert values[KEY_TASK_IMAGES]['cloudharness-base'] == 'testprojectname/cloudharness-base:1'
150150
assert values[KEY_TASK_IMAGES]['myapp-mytask'] == 'testprojectname/myapp-mytask:1'
151151
assert values[KEY_TASK_IMAGES]['my-common'] == 'testprojectname/my-common:1'
152-
153152

154153

155154
def test_collect_helm_values_precedence(tmp_path):

0 commit comments

Comments
 (0)