Skip to content

Commit 2cd02e1

Browse files
committed
fix: formatting
1 parent 4b9e386 commit 2cd02e1

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/popper/parser.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ def __apply_substitution(wf_element, k, v, used_registry):
141141
for ek in wf_element:
142142
if k in ek:
143143
log.fail("Substitutions not allowed on dictionary keys")
144-
wf_element[ek] = WorkflowParser.__apply_substitution(wf_element[ek], k, v, used_registry)
144+
wf_element[ek] = WorkflowParser.__apply_substitution(
145+
wf_element[ek], k, v, used_registry
146+
)
145147

146148
return wf_element
147149

src/test/test_parser.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ def test_substitutions(self):
171171
"id": "some other $_SUB2",
172172
"env": {"FOO": "env_$_SUB3"},
173173
"secrets": ["secret_$_SUB4"],
174-
"options": {
175-
"labels": {"timestamp": "$_TIMESTAMP"}
176-
},
174+
"options": {"labels": {"timestamp": "$_TIMESTAMP"}},
177175
}
178176
]
179177
}
@@ -184,9 +182,7 @@ def test_substitutions(self):
184182
"_SUB3=THREE",
185183
"_SUB4=4",
186184
]
187-
wf = WorkflowParser.parse(
188-
wf_data=wf_data, substitutions=substitutions,
189-
)
185+
wf = WorkflowParser.parse(wf_data=wf_data, substitutions=substitutions)
190186
step = wf.steps[0]
191187
self.assertEqual("some_ONE", step.uses)
192188
self.assertEqual("some other TWO", step.id)

0 commit comments

Comments
 (0)