Пример #1
0
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',
                       ])
Пример #2
0
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)
Пример #3
0
def task_pyflakes():
    flaker = Pyflakes()
    yield flaker('dodo.py')
    yield flaker.tasks('doit/*.py')
    yield flaker.tasks('tests/*.py')
Пример #4
0
def task_pyflakes():
    flaker = Pyflakes()
    yield flaker('dodo.py')
    yield flaker.tasks('doit/*.py')
    yield flaker.tasks('tests/*.py')
Пример #5
0
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',])
Пример #6
0
def task_pyflakes():
    flakes = Pyflakes()
    yield flakes.tasks('*.py')
    yield flakes.tasks('tests/*.py')
Пример #7
0
def task_pyflakes():
    flakes = Pyflakes()
    yield flakes.tasks('*.py')
    yield flakes.tasks('tests/*.py')
Пример #8
0
def task_pyflakes():
    flaker = Pyflakes()
    yield flaker.tasks('*.py')
    yield flaker.tasks('import_deps/*.py')
    yield flaker.tasks('tests/*.py')
Пример #9
0
def task_pyflakes():
    flaker = Pyflakes()
    yield flaker.tasks('**/*.py')