Skip to content

Commit b9ade1c

Browse files
committed
Fix linter
1 parent a151b94 commit b9ade1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,14 +199,15 @@ def is_running_in_evg_pipeline():
199199
class MissingEnvironmentVariable(Exception):
200200
pass
201201

202+
202203
def is_running_in_patch():
203204
is_patch = os.environ.get("is_patch")
204205
return is_patch is not None and is_patch.lower() == "true"
205206

206207

207208
def build_id() -> str:
208209
"""Returns the build id used for the image tag.
209-
The build id is configurable `build_tag_type` and `version_id` in evergreen.
210+
The build id is configurable `build_tag_type` and `version_id` in evergreen.
210211
"""
211212

212213
build_tag_type = ""
@@ -215,7 +216,6 @@ def build_id() -> str:
215216
except KeyError:
216217
pass
217218

218-
version_id = ""
219219
try:
220220
version_id = os.environ["version_id"]
221221
except KeyError:

pipeline_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ def test_create_and_push_manifest_push_error(mock_run):
325325
assert "Error pushing manifest" in str(exc_info.value)
326326
assert mock_run.call_count == 2 # Both create and push calls
327327

328+
328329
def test_build_id():
329330
from pipeline import build_id
330331

0 commit comments

Comments
 (0)