Skip to content

Commit 9be04d2

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

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

pydra/engine/audit.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,13 @@ def audit_task(self, task):
224224
}
225225
entity_id = f"uid:{gen_uuid()}"
226226
entity_message = {
227-
"@id": entity_id,
227+
"@id": entity_id,
228228
"Label": print(entity_label),
229-
"AtLocation": input_paths, #
230-
"GeneratedBy": "test",
229+
"AtLocation": input_paths, #
230+
"GeneratedBy": "test",
231231
"@type": "input",
232-
"digest": input_paths_hash
232+
"digest": input_paths_hash,
233233
}
234234

235-
236-
237235
self.audit_message(start_message, AuditFlag.PROV)
238236
self.audit_message(entity_message, AuditFlag.PROV)
239-

pydra/engine/tests/test_task.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,13 +1071,13 @@ def test_audit_shellcommandtask(tmpdir):
10711071

10721072
def test_audit_shellcommandtask_file(tmpdir):
10731073
import shutil
1074+
10741075
# create test.txt file with "This is a test" in it in the tmpdir
10751076
with open(tmpdir / "test.txt", "w") as f:
10761077
f.write("This is a test.")
10771078
# make a copy of the test.txt file in the tmpdir and name it test2.txt
10781079
shutil.copy(tmpdir / "test.txt", tmpdir / "test2.txt")
10791080

1080-
10811081
cmd = "cat"
10821082
file_in = tmpdir / "test.txt"
10831083
file_in_2 = tmpdir / "test2.txt"
@@ -1098,7 +1098,7 @@ def test_audit_shellcommandtask_file(tmpdir):
10981098
},
10991099
),
11001100
),
1101-
(
1101+
(
11021102
"in_file_2",
11031103
attr.ib(
11041104
type=File,
@@ -1109,7 +1109,7 @@ def test_audit_shellcommandtask_file(tmpdir):
11091109
"mandatory": True,
11101110
},
11111111
),
1112-
)
1112+
),
11131113
],
11141114
bases=(ShellSpec,),
11151115
)

0 commit comments

Comments
 (0)