Skip to content

Commit e7020bb

Browse files
authored
Merge branch 'master' into multiprocess
2 parents 447ba37 + 639229b commit e7020bb

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ CWL conformance tests: |Conformance Status| |Linux Status| |Windows Status| |Cov
1818
:target: https://codecov.io/gh/common-workflow-language/cwltool
1919

2020
This is the reference implementation of the Common Workflow Language. It is
21-
intended to feature complete and provide comprehensive validation of CWL
21+
intended to be feature complete and provide comprehensive validation of CWL
2222
files as well as provide other tools related to working with CWL.
2323

2424
This is written and tested for `Python <https://www.python.org/>`_ ``2.7 and 3.x {x = 4, 5, 6}``
@@ -113,7 +113,7 @@ the default cwl-runner use::
113113

114114
Use with boot2docker
115115
--------------------
116-
boot2docker is running docker inside a virtual machine and it only mounts ``Users``
116+
boot2docker runs Docker inside a virtual machine and it only mounts ``Users``
117117
on it. The default behavior of CWL is to create temporary directories under e.g.
118118
``/Var`` which is not accessible to Docker containers.
119119

@@ -126,7 +126,7 @@ Using user-space replacements for Docker
126126
----------------------------------------
127127

128128
Some shared computing environments don't support Docker software containers for technical or policy reasons.
129-
As a work around, the CWL reference runner supports using a alternative ``docker`` implementations on Linux
129+
As a work around, the CWL reference runner supports using alternative ``docker`` implementations on Linux
130130
with the ``--user-space-docker-cmd`` option.
131131

132132
One such "user space" friendly docker replacement is ``udocker`` https://github.com/indigo-dc/udocker and another
@@ -176,7 +176,7 @@ Use with GA4GH Tool Registry API
176176

177177
Cwltool can launch tools directly from `GA4GH Tool Registry API`_ endpoints.
178178

179-
By default, cwltool searches https://dockstore.org/ . Use --add-tool-registry to add other registries to the search path.
179+
By default, cwltool searches https://dockstore.org/ . Use ``--add-tool-registry`` to add other registries to the search path.
180180

181181
For example ::
182182

@@ -229,7 +229,7 @@ installing cwltool. For instance::
229229

230230
Installing cwltool in this fashion enables several new command line options.
231231
The most general of these options is ``--beta-dependency-resolvers-configuration``.
232-
This option allows one to specify a dependency resolvers configuration file.
232+
This option allows one to specify a dependency resolver's configuration file.
233233
This file may be specified as either XML or YAML and very simply describes various
234234
plugins to enable to "resolve" ``SoftwareRequirement`` dependencies.
235235

cwltool/validate_js.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from .utils import json_dumps
2121

2222
def is_expression(tool, schema):
23-
# type: (Union[CommentedMap, Any], Schema) -> bool
23+
# type: (Union[CommentedMap, Any], Optional[Schema]) -> bool
2424
return isinstance(schema, avro.schema.EnumSchema) \
2525
and schema.name == "Expression" and isinstance(tool, string_types)
2626

@@ -37,7 +37,7 @@ def filter(self, record):
3737
_logger_validation_warnings.addFilter(SuppressLog("cwltool.validation_warnings"))
3838

3939
def get_expressions(tool, # type: Union[CommentedMap, Any]
40-
schema, # type: avro.schema.Schema
40+
schema, # type: Optional[avro.schema.Schema]
4141
source_line=None # type: Optional[SourceLine]
4242
): # type: (...) -> List[Tuple[Text, Optional[SourceLine]]]
4343
if is_expression(tool, schema):
@@ -52,7 +52,6 @@ def get_expressions(tool, # type: Union[CommentedMap, Any]
5252
logger=_logger_validation_warnings):
5353
valid_schema = possible_schema
5454

55-
assert valid_schema is not None
5655
return get_expressions(tool, valid_schema, source_line)
5756
elif isinstance(schema, avro.schema.ArraySchema):
5857
if not isinstance(tool, list):

0 commit comments

Comments
 (0)