-
Notifications
You must be signed in to change notification settings - Fork 55
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
Remove string interpolator options from development spec + add sep
function
#381
Conversation
Pull Request Test Coverage Report for Build 1830
💛 - Coveralls |
Thanks! miniwdl's 'development' grammar still supports the special 'sep' construct in interpolations, so that's the likely cause of the conflict. My understanding is that the old sep is penciled for removal too (openwdl/wdl#229) so this shouldn't be an issue in the long run, but lets carry on a discussion of how to sequence those changes on those PRs. |
Ok, clarifying my understanding, openwdl/wdl#229 both deletes the old |
sep
function for joining array of stringssep
function
Thanks @mlin, I've realised I linked the wrong PR, and have fixed this. It was supposed to link to the "Clarify the expression placeholder and string interpolation behaviour" (openwdl/wdl#229) PR. Per your suggestion and the now correctly linked PR, I've modified the grammar for the development spec to remove all string interpolator options. The implementation would have to remain for previous versions of the spec to work correctly. I've added some tests into
|
@illusional try setting environment The travis build looks good and the coveralls is an unrelated stochastic fluctuation, nothing to worry about. |
Hey @mlin, I think this is good to go.
But my tests run, so this should be okay. |
Motivation
Approach
Followed Adding WDL functions tutorial.
Checklist
make pretty
to reformat the code with blackThis is currently formatting more than just my change in StdLib.py - so I've disabled it.make check
to statically check the code using Pyre and PylintCalling the
sep
function inside an interpolated line (inside a command block) is failing if it's the only argument inside the block, eg:I presume this might be a grammar thing, but I don't know how to solve it.