Exemplo n.º 1
0
def add_and_update_points_of_entry(project):
    count = 0
    for path in python_modules_below(project.get_points_of_entry_path()):
        poe = ensure_point_of_entry(project, path)
        if poe.is_out_of_sync():
            count += 1
    return count
Exemplo n.º 2
0
def add_and_update_points_of_entry(project):
    count = 0
    for path in python_modules_below(project.get_points_of_entry_path()):
        poe = ensure_point_of_entry(project, path)
        if poe.is_out_of_sync():
            count += 1
    return count
Exemplo n.º 3
0
def add_and_update_modules(project):
    count = 0
    for modpath in python_modules_below(project.path):
        try:
            module = project.find_module_by_full_path(modpath)
            if module.is_up_to_date():
                log.debug("%s hasn't changed since last inspection, skipping." % module.subpath)
                continue
        except ModuleNotFound:
            pass
        log.info("Inspecting module %s." % project._extract_subpath(modpath))
        static.inspect_module(project, modpath)
        count += 1
    return count
Exemplo n.º 4
0
def add_and_update_modules(project):
    count = 0
    for modpath in python_modules_below(project.path):
        try:
            module = project.find_module_by_full_path(modpath)
            if module.is_up_to_date():
                log.debug(
                    "%s hasn't changed since last inspection, skipping." %
                    module.subpath)
                continue
        except ModuleNotFound:
            pass
        log.info("Inspecting module %s." % project._extract_subpath(modpath))
        static.inspect_module(project, modpath)
        count += 1
    return count