# doc.py
from .clean import flycheck as _clean_flycheck
@task(_clean_flycheck, clean_api)
def make_api(ctx):
....
So as to don't register doc.flycheck which are available as clean.flycheck
I propose this change in collection.pyCollection.from_module
# tasks = filter(lambda x: isinstance(x, Task), vars(module).values())
tasks = [obj for name, obj in vars(module).items() if isinstance(obj, Task) and not name.startswith('_')]
Use case (Maybe I missed something ...)
So as to don't register
doc.flycheck
which are available asclean.flycheck
I propose this change in
collection.py
Collection.from_module