Skip to content

Commit ea2a0b9

Browse files
committed
fix linting
1 parent 5280368 commit ea2a0b9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

cwltool/cwlprov/ro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from collections.abc import MutableMapping, MutableSequence
1111
from pathlib import Path, PurePosixPath
1212
from socket import getfqdn
13-
from typing import TYPE_CHECKING, IO, Any, Optional, Union, cast
13+
from typing import IO, TYPE_CHECKING, Any, Optional, Union, cast
1414

1515
import prov.model as provM
1616
from prov.model import ProvDocument

tests/test_provenance.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ def cwltool(tmp_path: Path, *args: Any) -> Path:
4343
new_args = [
4444
"--enable-user-provenance",
4545
"--enable-host-provenance",
46-
"--orcid", TEST_ORCID,
47-
"--provenance", str(prov_folder)
46+
"--orcid",
47+
TEST_ORCID,
48+
"--provenance",
49+
str(prov_folder),
4850
]
4951
new_args.extend(args)
5052
# Run within a temporary directory to not pollute git checkout
@@ -519,9 +521,9 @@ def check_prov(
519521
tool_agents = set(g.subjects(RDF.type, PROV.SoftwareAgent))
520522
n_all_agents = 2 + len(tool_agents)
521523
agents = set(g.subjects(RDF.type, PROV.Agent))
522-
assert len(agents) == n_all_agents, (
523-
"There should be 1 agent per tool (engine), 1 user agent, and 1 cwltool agent"
524-
)
524+
assert (
525+
len(agents) == n_all_agents
526+
), "There should be 1 agent per tool (engine), 1 user agent, and 1 cwltool agent"
525527
agents.remove(person)
526528
agents.remove(engine) # the main tool
527529
remain_agents = agents - tool_agents
@@ -530,7 +532,7 @@ def check_prov(
530532
assert (
531533
cwltool_agent,
532534
PROV.actedOnBehalfOf,
533-
person
535+
person,
534536
) in g, "Association of cwltool agent acting for user is missing"
535537

536538
if single_tool:

0 commit comments

Comments
 (0)