Passing all arguments to task

9 views
Skip to first unread message

Stephen Carboni

unread,
Jul 18, 2022, 10:37:59 AMJul 18
to python-doit
Hello!

I found pydoit while looking for a tool that would be better suited than gnu make for documenting and sharing useful commands with developers (but still having nice things like task dependency).

For example:

def task_pytest():
    """Run pytest through docker"""
    return {
        "actions": ["docker-compose run --rm dev python -m pytest"],
        "verbosity": 2,
    }


The only thing that seems to be an issue is that there's no way to pass all arguments when calling the task. You have to state each and every one. I don't want to have to recreate all of pytest's CLI options. Is there a way around this?

Eduardo Schettino

unread,
Jul 18, 2022, 10:49:13 AMJul 18
to python-doit
Hi,

Do you mean want to call it like:

```
doit pytest --pdb
```

Currently this is not possible. But it would be a nice addition.
Best to create an issue on github to discuss how this would be implemented...

Regards

--
You received this message because you are subscribed to the Google Groups "python-doit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-doit...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-doit/160e34b7-2899-453e-8217-c214afafcb9dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages