wpiformat/wpiformat/__init__.py
def proc_batch(files):
    """Runs each task in the pipeline on batches of files.

    These tasks read and write to the files directly. They are given a list of
    all files at once to avoid spawning too many subprocesses.

    Keyword arguments:
    files -- list of file names

    Returns true if all tasks succeeded.
    """
    all_success = True

    for subtask in task_pipeline:
        work = []
        for name in files:
            config_file = Config(os.path.dirname(name), ".styleguide")
            if subtask.should_process_file(config_file, name):
                work.append(name)

        if work:
            # Conservative estimate for max argument length. 32767 is from the
            # Win32 docs for CreateProcessA(), but the limit appears to be lower
            # than that in practice.
            MAX_WIN32_ARGS_LEN = 32767 * 7 / 8

            for subwork in chunks(work, MAX_WIN32_ARGS_LEN):
                if verbose1 or verbose2:
                    print("Running", type(subtask).__name__)
                    if verbose2:
                        for name in subwork:
                            print("  on", name)
                all_success &= subtask.run_batch(config_file, subwork)

    return all_success
Runs each task in the pipeline on batches of files.

    These tasks read and write to the files directly. They are given a list of
    all files at once to avoid spawning too many subprocesses.

    Keyword arguments:
    files -- list of file names

    Returns true if all tasks succeeded.
    
Runs each task in the pipeline on batches of files.
These tasks read and write to the files directly. They are given a list of
all files at once to avoid spawning too many subprocesses.

Keyword arguments:
files -- list of file names

Returns true if all tasks succeeded.
Runs each task in the pipeline on batches of files . These tasks read and write to the files directly . They are given a list of all files at once to avoid spawning too many subprocesses . Keyword arguments : files -- list of file names Returns true if all tasks succeeded .
def proc_batch(files):
    all_success = True
    for subtask in task_pipeline:
        work = []
        for name in files:
            config_file = Config(os.path.dirname(name), ".styleguide")
            if subtask.should_process_file(config_file, name):
                work.append(name)
        if work:
            MAX_WIN32_ARGS_LEN = 32767 * 7 / 8
            for subwork in chunks(work, MAX_WIN32_ARGS_LEN):
                if verbose1 or verbose2:
                    print("Running", type(subtask).__name__)
                    if verbose2:
                        for name in subwork:
                            print("  on", name)
                all_success &= subtask.run_batch(config_file, subwork)
    return all_success
def proc_batch ( files ) : all_success = True for subtask in task_pipeline : work = [ ] for name in files : config_file = Config ( os . path . dirname ( name ) , ".styleguide" ) if subtask . should_process_file ( config_file , name ) : work . append ( name ) if work : MAX_WIN32_ARGS_LEN = 32767 * 7 / 8 for subwork in chunks ( work , MAX_WIN32_ARGS_LEN ) : if verbose1 or verbose2 : print ( "Running" , type ( subtask ) . __name__ ) if verbose2 : for name in subwork : print ( "  on" , name ) all_success &= subtask . run_batch ( config_file , subwork ) return all_success
Runs each task in the pipeline on batches of files.
Runs each task in the pipeline on batches of files .
"""Runs each task in the pipeline on batches of files.

    These tasks read and write to the files directly. They are given a list of
    all files at once to avoid spawning too many subprocesses.

    Keyword arguments:
    files -- list of file names

    Returns true if all tasks succeeded.
    """ # Conservative estimate for max argument length. 32767 is from the # Win32 docs for CreateProcessA(), but the limit appears to be lower # than that in practice.
files