class documentation
class PytypeRunner: (source)
Runs pytype over an import graph.
Method | __init__ |
Undocumented |
Method | build |
Execute the build.ninja file. |
Method | get |
Get the action for the given module. |
Method | get |
Get the command line for running pytype. |
Method | make |
Undocumented |
Method | run |
Run pytype over the project. |
Method | set |
Merge self.custom_options into flags_with_values and binary_flags. |
Method | setup |
Write out the full build.ninja file. |
Method | write |
Write a build statement for the given module. |
Method | write |
Write a default pyi file. |
Method | write |
Write a .imports file. |
Method | write |
Write out the pytype-single commands that the build will call. |
Method | yield |
Yield modules from our sorted source files. |
Instance Variable | custom |
Undocumented |
Instance Variable | filenames |
Undocumented |
Instance Variable | imports |
Undocumented |
Instance Variable | jobs |
Undocumented |
Instance Variable | keep |
Undocumented |
Instance Variable | ninja |
Undocumented |
Instance Variable | platform |
Undocumented |
Instance Variable | pyi |
Undocumented |
Instance Variable | python |
Undocumented |
Instance Variable | sorted |
Undocumented |
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.
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 yield_sorted_modules(self) ->
Iterable[ Tuple[ module_utils.Module, str, Sequence[ module_utils.Module], str]]
:
(source)
¶
Yield modules from our sorted source files.