Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias FunctionDef arguments args NameParam defaults body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Lambda arguments args NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad Call NameLoad NameLoad Str attr TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Raise Call NameLoad Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call NameLoad Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore IfExp CompareIsNot NameLoad NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Call AttributeLoad Str attr AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For NameStore AttributeLoad NameLoad attr body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Num Return NameLoad decorator_list Return NameLoad decorator_list
N/A __future__ print_function __future__ unicode_literals N/A argparse N/A os.path N/A re N/A sys N/A jsonschema N/A jsonschema.exceptions N/A pkg_resources N/A yaml pre_commit.jsonschema_extensions apply_defaults is_regex_valid N/A N/A regex N/A N/A N/A N/A N/A N/A N/A re compile regex N/A True N/A N/A N/A N/A re error N/A N/A False N/A get_validator N/A N/A json_schema exception_type additional_validation_strategy N/A N/A N/A N/A obj N/A None N/A N/A Returns a function which will validate a yaml file for correctness

    Args:
        json_schema - JSON schema to validate file with
        exception_type - Error type to raise on failure
        additional_validation_strategy - Strategy for additional validation of
            the object read from the file.  The function should either raise
            exception_type on failure.
     validate N/A N/A filename load_strategy N/A N/A yaml load N/A N/A N/A N/A N/A N/A os path exists filename N/A N/A N/A exception_type N/A N/A File {0} does not exist format filename N/A file_contents N/A N/A N/A open filename r read N/A N/A N/A obj N/A load_strategy file_contents N/A N/A N/A Exception N/A e N/A N/A N/A exception_type N/A N/A Invalid yaml: {0}
{1} format N/A N/A N/A os path relpath filename e N/A N/A N/A N/A N/A jsonschema validate obj json_schema N/A N/A N/A N/A N/A jsonschema exceptions ValidationError N/A e N/A N/A N/A exception_type N/A N/A Invalid content: {0}
{1} format N/A N/A N/A os path relpath filename e N/A obj N/A apply_defaults obj json_schema N/A N/A additional_validation_strategy obj N/A obj N/A N/A validate N/A get_run_function N/A N/A filenames_help validate_strategy exception_cls N/A N/A run N/A N/A argv N/A None N/A N/A argv N/A N/A argv None argv N/A N/A sys argv N/A 1 N/A parser N/A N/A argparse ArgumentParser N/A N/A N/A parser add_argument filenames nargs * help filenames_help N/A N/A N/A parser add_argument -V --version action version version N/A N/A %(prog)s {0} format N/A N/A N/A pkg_resources get_distribution pre-commit version N/A args N/A N/A parser parse_args argv N/A retval 0 N/A filename N/A args filenames N/A N/A N/A N/A N/A validate_strategy filename N/A N/A N/A exception_cls N/A e N/A N/A N/A print N/A N/A e args N/A 0 N/A retval 1 N/A retval N/A N/A run N/A