def task_pyflakes(): flakes = Pyflakes() yield flakes.tasks('*.py') yield flakes.tasks('doitpy/*.py') yield flakes.tasks('tests/**/*.py', exclude_paths=[ 'tests/sample/flake_fail.py', ])
def conv_pyflakes(data): """convert a yaml entry into a Pyflakes task""" if isinstance(data, str): pattern = '*' in data module = data else: assert isinstance(data, dict) pattern = False module = data['file'] flakes = Pyflakes() list_taskd = flakes.tasks(module) if pattern else [flakes(module)] for taskd in list_taskd: taskd['name'] = 'pyflakes:{}'.format(taskd['name']) yield dict_to_task(taskd)
def task_pyflakes(): flaker = Pyflakes() yield flaker('dodo.py') yield flaker.tasks('doit/*.py') yield flaker.tasks('tests/*.py')
def task_pyflakes(): flakes = Pyflakes() yield flakes.tasks('*.py') yield flakes.tasks('doitpy/*.py') yield flakes.tasks('tests/**/*.py', exclude_paths=['tests/sample/flake_fail.py',])
def task_pyflakes(): flakes = Pyflakes() yield flakes.tasks('*.py') yield flakes.tasks('tests/*.py')
def task_pyflakes(): flaker = Pyflakes() yield flaker.tasks('*.py') yield flaker.tasks('import_deps/*.py') yield flaker.tasks('tests/*.py')
def task_pyflakes(): flaker = Pyflakes() yield flaker.tasks('**/*.py')