Skip to content

Commit 9d037df

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d1e3c58 commit 9d037df

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

pydra/engine/audit.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def audit_task(self, task):
174174
import subprocess as sp
175175

176176
label = task.name
177-
178177

179178
command = task.cmdline if hasattr(task.inputs, "executable") else None
180179
attr_list = attr_fields(task.inputs)
@@ -186,18 +185,15 @@ def audit_task(self, task):
186185
file_hash = hash_file(input_path)
187186
entity_id = f"uid:{gen_uuid()}"
188187
entity_message = {
189-
"@id": entity_id,
188+
"@id": entity_id,
190189
"Label": entity_label,
191190
"AtLocation": input_path,
192-
"GeneratedBy": None,
191+
"GeneratedBy": None,
193192
"@type": "input",
194193
"digest": file_hash,
195194
}
196195
self.audit_message(entity_message, AuditFlag.PROV)
197196

198-
199-
200-
201197
if command is not None:
202198
cmd_name = command.split()[0]
203199
software = f"{cmd_name} --version"
@@ -225,6 +221,4 @@ def audit_task(self, task):
225221
"AssociatedWith": version_cmd,
226222
}
227223

228-
229-
230224
self.audit_message(start_message, AuditFlag.PROV)

0 commit comments

Comments
 (0)