Skip to content

Commit 60939c8

Browse files
are-cesclaude
andcommitted
LCORE-2860: fix formatting in prow_utils.py
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2d36036 commit 60939c8

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

tests/e2e/utils/prow_utils.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,9 @@ def _apply_inference_overrides(content: str) -> str:
247247
if not model and not provider:
248248
return content
249249
if model:
250-
content = re.sub(
251-
r"(default_model:\s*).*", rf"\g<1>{model}", content
252-
)
250+
content = re.sub(r"(default_model:\s*).*", rf"\g<1>{model}", content)
253251
if provider:
254-
content = re.sub(
255-
r"(default_provider:\s*).*", rf"\g<1>{provider}", content
256-
)
252+
content = re.sub(r"(default_provider:\s*).*", rf"\g<1>{provider}", content)
257253
return content
258254

259255

@@ -323,9 +319,7 @@ def update_config_configmap(
323319
with open(source) as f:
324320
original = f.read()
325321
if patched != original:
326-
tmp = tempfile.NamedTemporaryFile(
327-
mode="w", suffix=".yaml", delete=False
328-
)
322+
tmp = tempfile.NamedTemporaryFile(mode="w", suffix=".yaml", delete=False)
329323
tmp.write(patched)
330324
tmp.close()
331325
source_to_apply = tmp.name

0 commit comments

Comments
 (0)