-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DO NOT MERGE: Migrate CWL parsing from cwltool to cwl-utils #58
base: master
Are you sure you want to change the base?
Conversation
e38eb72
to
461df47
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #58 +/- ##
==========================================
- Coverage 65.93% 64.96% -0.98%
==========================================
Files 82 82
Lines 10234 10303 +69
Branches 2419 2442 +23
==========================================
- Hits 6748 6693 -55
- Misses 3052 3167 +115
- Partials 434 443 +9 ☔ View full report in Codecov by Sentry. |
a656498
to
025ba47
Compare
dd2d48d
to
2502ef0
Compare
2502ef0
to
8ce2b7c
Compare
0899281
to
2eadb6d
Compare
2a84f23
to
fe6fd4a
Compare
32083a0
to
8acb8ad
Compare
8acb8ad
to
28acb03
Compare
db57c6b
to
e7c7f32
Compare
current_context["requirements"][requirement["class"]] = requirement | ||
for hint in cwl_element.hints or []: | ||
if not isinstance(hint, MutableMapping): | ||
current_context["hints"][hint.class_] = hint |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
if not isinstance(hint, MutableMapping): | ||
current_context["hints"][hint.class_] = hint | ||
for requirement in cwl_element.requirements or []: | ||
current_context["requirements"][requirement.class_] = requirement |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
) | ||
else: | ||
for requirement in self.cwl_inputs[req_string]: | ||
current_context["requirements"][ |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
), | ||
context: MutableMapping[str, Any], | ||
name_prefix: str, | ||
cwl_name_prefix: str, | ||
): | ||
context["elements"][cwl_element.id] = cwl_element |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
cwl_utils.parser.utils.static_checker(cwl_element) | ||
except ValidationException as ve: | ||
raise WorkflowDefinitionException from ve | ||
context["elements"][cwl_element.id] = cwl_element |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
context: MutableMapping[str, Any], | ||
name_prefix: str, | ||
cwl_name_prefix: str, | ||
): | ||
# Process content | ||
context["elements"][cwl_element.id] = cwl_element |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
context["requirements"][requirement["class"]] = requirement | ||
for hint in cwl_element.hints or []: | ||
if not isinstance(hint, MutableMapping): | ||
context["hints"][hint.class_] = hint |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
if not isinstance(hint, MutableMapping): | ||
context["hints"][hint.class_] = hint | ||
for requirement in cwl_element.requirements or []: | ||
context["requirements"][requirement.class_] = requirement |
Check failure
Code scanning / CodeQL
Modification of parameter with default Error
default value
0a1b138
to
087edd1
Compare
d95f92b
to
dc7094f
Compare
This commit replaces the cwltool parser with the faster auto-generated parser included in cwl-utils.
0a8efe0
to
1d892f8
Compare
1d892f8
to
1ca11fd
Compare
d1735c2
to
e9bb106
Compare
This commit replaces the cwltool parser with the faster auto-generated parser included in cwl-utils.