Skip to content

Commit b38b995

Browse files
committed
fix style issues
1 parent 817ede8 commit b38b995

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

ipython2cwl/__init__.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
"""
2-
Compile IPython Jupyter Notebooks as CWL CommandLineTools
3-
"""
1+
"""Compile IPython Jupyter Notebooks as CWL CommandLineTools"""
42
__version__ = "0.0.4"

ipython2cwl/cwltoolextractor.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ class AnnotatedIPython2CWLToolConverter:
197197
with the described inputs & outputs.
198198
"""
199199

200-
_code: str
201-
"""The annotated python code to convert."""
200+
_code: str # The annotated python code to convert.
202201

203202
def __init__(self, annotated_ipython_code: str):
204203
"""Creates an AnnotatedIPython2CWLToolConverter. If the annotated_ipython_code contains magic commands use the
@@ -207,7 +206,8 @@ def __init__(self, annotated_ipython_code: str):
207206
self._code = annotated_ipython_code
208207
extractor = AnnotatedVariablesExtractor()
209208
self._tree = extractor.visit(ast.parse(self._code))
210-
[self._tree.body.extend(d) for d in extractor.to_dump]
209+
for d in extractor.to_dump:
210+
self._tree.body.extend(d)
211211
self._tree = ast.fix_missing_locations(self._tree)
212212
self._variables = []
213213
for variable in extractor.extracted_variables: # type: _VariableNameTypePair

0 commit comments

Comments
 (0)