class documentation

class PytypeRunner: (source)

View In Hierarchy

Runs pytype over an import graph.

Method __init__ Undocumented
Method build Execute the build.ninja file.
Method get_module_action Get the action for the given module.
Method get_pytype_command_for_ninja Get the command line for running pytype.
Method make_imports_dir Undocumented
Method run Run pytype over the project.
Method set_custom_options Merge self.custom_options into flags_with_values and binary_flags.
Method setup_build Write out the full build.ninja file.
Method write_build_statement Write a build statement for the given module.
Method write_default_pyi Write a default pyi file.
Method write_imports Write a .imports file.
Method write_ninja_preamble Write out the pytype-single commands that the build will call.
Method yield_sorted_modules Yield modules from our sorted source files.
Instance Variable custom_options Undocumented
Instance Variable filenames Undocumented
Instance Variable imports_dir Undocumented
Instance Variable jobs Undocumented
Instance Variable keep_going Undocumented
Instance Variable ninja_file Undocumented
Instance Variable platform Undocumented
Instance Variable pyi_dir Undocumented
Instance Variable python_version Undocumented
Instance Variable sorted_sources Undocumented
def __init__(self, conf, sorted_sources): (source)

Undocumented

def build(self): (source)

Execute the build.ninja file.

def get_module_action(self, module): (source)

Get the action for the given module. Args: module: A module_utils.Module object. Returns: An Action object, or None for a non-Python file.

def get_pytype_command_for_ninja(self, report_errors): (source)

Get the command line for running pytype.

def make_imports_dir(self): (source)

Undocumented

def run(self): (source)

Run pytype over the project.

def set_custom_options(self, flags_with_values, binary_flags, report_errors): (source)

Merge self.custom_options into flags_with_values and binary_flags.

def setup_build(self): (source)

Write out the full build.ninja file. Returns: All files with build statements.

def write_build_statement(self, module, action, deps, imports, suffix): (source)

Write a build statement for the given module. Args: module: A module_utils.Module object. action: An Action object. deps: The module's dependencies. imports: An imports file. suffix: An output file suffix. Returns: The expected output of the build statement.

def write_default_pyi(self): (source)

Write a default pyi file.

def write_imports(self, module_name, imports_map, suffix): (source)

Write a .imports file.

def write_ninja_preamble(self): (source)

Write out the pytype-single commands that the build will call.

Yield modules from our sorted source files.

custom_options = (source)

Undocumented

filenames = (source)

Undocumented

imports_dir = (source)

Undocumented

Undocumented

keep_going = (source)

Undocumented

ninja_file = (source)

Undocumented

platform = (source)

Undocumented

Undocumented

python_version = (source)

Undocumented

sorted_sources = (source)

Undocumented