Skip to content

Commit f3068f6

Browse files
kinowmr-c
andauthored
Fix typos and wrong pip version range (#147)
Co-authored-by: Michael R. Crusoe <[email protected]>
1 parent 9fee238 commit f3068f6

8 files changed

+24
-24
lines changed

cwl_utils/cwl_expression_refactor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __call__(
5959

6060

6161
def arg_parser() -> argparse.ArgumentParser:
62-
"""Build the arrgument parser."""
62+
"""Build the argument parser."""
6363
parser = argparse.ArgumentParser(
6464
description="Tool to refactor CWL documents so that any CWL expression "
6565
"are separate steps as either ExpressionTools or CommandLineTools. Exit code 7 "
@@ -154,7 +154,7 @@ def run(args: argparse.Namespace) -> int:
154154
for result_item in result
155155
]
156156
yaml.scalarstring.walk_tree(result_json)
157-
# ^ converts multine line strings to nice multiline YAML
157+
# ^ converts multiline strings to nice multiline YAML
158158
with open(output, "w", encoding="utf-8") as output_filehandle:
159159
output_filehandle.write(
160160
"#!/usr/bin/env cwl-runner\n"

cwl_utils/cwl_v1_0_expression_refactor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def traverse(
216216
skip_command_line1: bool,
217217
skip_command_line2: bool,
218218
) -> Tuple[Union[cwl.CommandLineTool, cwl.ExpressionTool, cwl.Workflow], bool]:
219-
"""Convert the given process and any subprocesess."""
219+
"""Convert the given process and any subprocesses."""
220220
if not inside and isinstance(process, cwl.CommandLineTool):
221221
process = expand_stream_shortcuts(process)
222222
wf_inputs = []
@@ -1488,7 +1488,7 @@ def traverse_CommandLineTool(
14881488
)
14891489
new_clt_step = copy.copy(
14901490
step
1491-
) # a deepcopy would be convienant, but params2.cwl gives it problems
1491+
) # a deepcopy would be convenient, but params2.cwl gives it problems
14921492
new_clt_step.id = cast(str, new_clt_step.id).split("#")[-1]
14931493
new_clt_step.run = copy.copy(step.run)
14941494
new_clt_step.run.id = None
@@ -1515,7 +1515,7 @@ def traverse_CommandLineTool(
15151515
)
15161516
else:
15171517
raise Exception(
1518-
"Unimplemented OutputParamter type: %s",
1518+
"Unimplemented OutputParameter type: %s",
15191519
type(new_outp),
15201520
)
15211521
new_clt_step.in_ = copy.deepcopy(step.in_)
@@ -1595,7 +1595,7 @@ def remove_JSReq(
15951595
process: Union[cwl.CommandLineTool, cwl.WorkflowStep, cwl.Workflow],
15961596
skip_command_line1: bool,
15971597
) -> None:
1598-
"""Since the InlineJavascriptRequiment is longer needed, remove it."""
1598+
"""Since the InlineJavascriptRequirement is longer needed, remove it."""
15991599
if skip_command_line1 and isinstance(process, cwl.CommandLineTool):
16001600
return
16011601
if process.hints:
@@ -1958,7 +1958,7 @@ def traverse_step(
19581958
def workflow_step_to_InputParameters(
19591959
step_ins: List[cwl.WorkflowStepInput], parent: cwl.Workflow, except_in_id: str
19601960
) -> List[cwl.InputParameter]:
1961-
"""Create InputParametes to match the given WorkflowStep inputs."""
1961+
"""Create InputParameters to match the given WorkflowStep inputs."""
19621962
params = []
19631963
for inp in step_ins:
19641964
if not inp.id:

cwl_utils/cwl_v1_1_expression_refactor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def traverse(
216216
skip_command_line1: bool,
217217
skip_command_line2: bool,
218218
) -> Tuple[Union[cwl.CommandLineTool, cwl.ExpressionTool, cwl.Workflow], bool]:
219-
"""Convert the given process and any subprocesess."""
219+
"""Convert the given process and any subprocesses."""
220220
if not inside and isinstance(process, cwl.CommandLineTool):
221221
process = expand_stream_shortcuts(process)
222222
wf_inputs = []
@@ -1488,7 +1488,7 @@ def traverse_CommandLineTool(
14881488
)
14891489
new_clt_step = copy.copy(
14901490
step
1491-
) # a deepcopy would be convienant, but params2.cwl gives it problems
1491+
) # a deepcopy would be convenient, but params2.cwl gives it problems
14921492
new_clt_step.id = cast(str, new_clt_step.id).split("#")[-1]
14931493
new_clt_step.run = copy.copy(step.run)
14941494
new_clt_step.run.id = None
@@ -1515,7 +1515,7 @@ def traverse_CommandLineTool(
15151515
)
15161516
else:
15171517
raise Exception(
1518-
"Unimplemented OutputParamter type: %s",
1518+
"Unimplemented OutputParameter type: %s",
15191519
type(new_outp),
15201520
)
15211521
new_clt_step.in_ = copy.deepcopy(step.in_)
@@ -1595,7 +1595,7 @@ def remove_JSReq(
15951595
process: Union[cwl.CommandLineTool, cwl.WorkflowStep, cwl.Workflow],
15961596
skip_command_line1: bool,
15971597
) -> None:
1598-
"""Since the InlineJavascriptRequiment is longer needed, remove it."""
1598+
"""Since the InlineJavascriptRequirement is longer needed, remove it."""
15991599
if skip_command_line1 and isinstance(process, cwl.CommandLineTool):
16001600
return
16011601
if process.hints:
@@ -1958,7 +1958,7 @@ def traverse_step(
19581958
def workflow_step_to_WorkflowInputParameters(
19591959
step_ins: List[cwl.WorkflowStepInput], parent: cwl.Workflow, except_in_id: str
19601960
) -> List[cwl.WorkflowInputParameter]:
1961-
"""Create WorkflowInputParametes to match the given WorkflowStep inputs."""
1961+
"""Create WorkflowInputParameters to match the given WorkflowStep inputs."""
19621962
params = []
19631963
for inp in step_ins:
19641964
if not inp.id:

cwl_utils/cwl_v1_2_expression_refactor.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def traverse(
216216
skip_command_line1: bool,
217217
skip_command_line2: bool,
218218
) -> Tuple[Union[cwl.CommandLineTool, cwl.ExpressionTool, cwl.Workflow], bool]:
219-
"""Convert the given process and any subprocesess."""
219+
"""Convert the given process and any subprocesses."""
220220
if not inside and isinstance(process, cwl.CommandLineTool):
221221
process = expand_stream_shortcuts(process)
222222
wf_inputs = []
@@ -1584,7 +1584,7 @@ def traverse_CommandLineTool(
15841584
)
15851585
new_clt_step = copy.copy(
15861586
step
1587-
) # a deepcopy would be convienant, but params2.cwl gives it problems
1587+
) # a deepcopy would be convenient, but params2.cwl gives it problems
15881588
new_clt_step.id = cast(str, new_clt_step.id).split("#")[-1]
15891589
new_clt_step.run = copy.copy(step.run)
15901590
new_clt_step.run.id = None
@@ -1611,7 +1611,7 @@ def traverse_CommandLineTool(
16111611
)
16121612
else:
16131613
raise Exception(
1614-
"Unimplemented OutputParamter type: %s",
1614+
"Unimplemented OutputParameter type: %s",
16151615
type(new_outp),
16161616
)
16171617
new_clt_step.in_ = copy.deepcopy(step.in_)
@@ -1691,7 +1691,7 @@ def remove_JSReq(
16911691
process: Union[cwl.CommandLineTool, cwl.WorkflowStep, cwl.Workflow],
16921692
skip_command_line1: bool,
16931693
) -> None:
1694-
"""Since the InlineJavascriptRequiment is longer needed, remove it."""
1694+
"""Since the InlineJavascriptRequirement is longer needed, remove it."""
16951695
if skip_command_line1 and isinstance(process, cwl.CommandLineTool):
16961696
return
16971697
if process.hints:
@@ -2062,7 +2062,7 @@ def traverse_step(
20622062
def workflow_step_to_WorkflowInputParameters(
20632063
step_ins: List[cwl.WorkflowStepInput], parent: cwl.Workflow, except_in_id: str
20642064
) -> List[cwl.WorkflowInputParameter]:
2065-
"""Create WorkflowInputParametes to match the given WorkflowStep inputs."""
2065+
"""Create WorkflowInputParameters to match the given WorkflowStep inputs."""
20662066
params = []
20672067
for inp in step_ins:
20682068
if not inp.id:

cwl_utils/docker_extract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def main(args: argparse.Namespace) -> None:
5757
def extract_docker_requirements(
5858
process: ProcessType,
5959
) -> Iterator[cwl.DockerRequirement]:
60-
"""Yield an iterator of the docker reqs, normalizint the pull request."""
60+
"""Yield an iterator of the docker reqs, normalizing the pull request."""
6161
for req in extract_docker_reqs(process):
6262
if isinstance(req.dockerPull, str) and ":" not in req.dockerPull:
6363
req.dockerPull += ":latest"

cwl_utils/pack.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ def _add_req(_req_name: str) -> None:
261261
requirements += [{"class": _req_name}]
262262

263263
if cwl.get("class") == "Workflow":
264-
sub_worflow = False
264+
sub_workflow = False
265265
for step in cwl["steps"]:
266266
if step["run"]["class"] == "Workflow":
267-
sub_worflow = True
267+
sub_workflow = True
268268
break
269-
if sub_worflow:
269+
if sub_workflow:
270270
_add_req("SubworkflowFeatureRequirement")
271271
return cwl
272272

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
# -- Project information -----------------------------------------------------
1919

2020
project = 'cwl-utils'
21-
copyright = '2019, CWL Commmunity'
22-
author = 'CWL Commmunity'
21+
copyright = '2019, CWL Community'
22+
author = 'CWL Community'
2323

2424

2525
# -- General configuration ---------------------------------------------------

mypy-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
mypy==0.971
22
typing_extensions
33
types-requests
4-
types-setuptools>==57.4.0
4+
types-setuptools>=57.4.0

0 commit comments

Comments
 (0)