flaxandteal / dewret

DEclarative Workflow REndering Tool
Apache License 2.0
1 stars 0 forks source link

Error expected if argument list is incomplete [1-25] #11

Closed philtweir closed 2 months ago

philtweir commented 4 months ago

For non-defined but required inputs the rendering did not throw an error. Consider the example

import sys
import yaml
from dewret.tasks import task, run
from dewret.renderers.cwl import render

@task()
def increment(num: int) -> int:
    return num + 1

result = increment()
workflow = run(result)
cwl = render(workflow)
yaml.dump(cwl, sys.stdout, indent=2)

but instead create (to my understanding incorrect) an output:

class: Workflow
cwlVersion: 1.2
inputs: {}
outputs:
  out:
    label: out
    outputSource: increment-ecfc9b657ab3a0f2bc96ee9dce5e98e3/out
    type: int
steps:
  increment-ecfc9b657ab3a0f2bc96ee9dce5e98e3:
    in: {}
    out:
    - out
    run: increment
elleryames commented 2 months ago

Closed by #13