from doitpy.pyflakes import Pyflakes


DOIT_CONFIG = {'default_tasks': ['pyflakes', 'test', 'doctest']}


def task_pyflakes():
    yield Pyflakes().tasks('*.py')

def task_test():
    return {
        'actions': ['py.test'],
        'file_dep': ['configclass.py', 'test_configclass.py'],
        }

def task_doctest():
    return {
        'actions': ['python -m doctest -v README.rst'],
        'file_dep': ['configclass.py', 'README.rst'],
        }

def task_coverage():
    return {
        'actions': [
            'coverage run --source=configclass.py,test_configclass.py `which py.test`',
            'coverage report --show-missing'],
        'verbosity': 2,
        }




def task_manifest():
    """create manifest file for distutils """

    cmd = "git ls-tree --name-only -r HEAD > MANIFEST"
    return {'actions': [cmd]}


def task_pypi():
    """upload package to pypi"""
    return {
        'actions': ["python setup.py sdist upload"],
        'task_dep': ['manifest'],
        }

from doitpy.pyflakes import Pyflakes


DOIT_CONFIG = {'default_tasks': ['pyflakes', 'test', 'doctest']}


def task_pyflakes():
    yield Pyflakes().tasks('*.py')

def task_test():
    return {
        'actions': ['py.test'],
        'file_dep': ['configclass.py', 'test_configclass.py'],
        }

def task_doctest():
    return {
        'actions': ['python -m doctest -v README.rst'],
        'file_dep': ['configclass.py', 'README.rst'],
        }

def task_coverage():
    return {
        'actions': [
            'coverage run --source=configclass,test_configclass `which py.test`',
            'coverage report --show-missing'],
        'verbosity': 2,
        }




def task_manifest():
    """create manifest file for distutils """

    cmd = "git ls-tree --name-only -r HEAD > MANIFEST"
    return {'actions': [cmd]}


def task_pypi():
    """upload package to pypi"""
    return {
        'actions': ["python setup.py sdist upload"],
        'task_dep': ['manifest'],
        }

Fix call to "coverage run"
doit: Fix call to "coverage run"
