tools/ci_static_check_reports/ci_detect_changed_modules/main.py
def list_changed_modules(changed_files: List[str]) -> List[Dict[str, str]]:
    """
    changed_filed are the list of files which were modified in current branch.
    E.g. changed_files = ["tools/ci_static_check_reports/__init__.py", "tools/ci_static_check_reports/setup.py", ...]
    """

    modules: List[Dict[str, str]] = []
    unique_modules: set = set()
    for file_path in changed_files:
        _, file_extension = os.path.splitext(file_path)
        find_base_path(file_path, modules, file_ext=file_extension, unique_modules=unique_modules)
    return modules

    changed_filed are the list of files which were modified in current branch.
    E.g. changed_files = ["tools/ci_static_check_reports/__init__.py", "tools/ci_static_check_reports/setup.py", ...]
    
changed_filed are the list of files which were modified in current branch.
changed_filed are the list of files which were modified in current branch .
def list_changed_modules(changed_files: List[str]) -> List[Dict[str, str]]:
    modules: List[Dict[str, str]] = []
    unique_modules: set = set()
    for file_path in changed_files:
        _, file_extension = os.path.splitext(file_path)
        find_base_path(file_path, modules, file_ext=file_extension, unique_modules=unique_modules)
    return modules
def list_changed_modules ( changed_files : List [ str ] ) -> List [ Dict [ str , str ] ] : modules : List [ Dict [ str , str ] ] = [ ] unique_modules : set = set ( ) for file_path in changed_files : _ , file_extension = os . path . splitext ( file_path ) find_base_path ( file_path , modules , file_ext = file_extension , unique_modules = unique_modules ) return modules
changed_filed are the list of files which were modified in current branch.
changed_filed are the list of files which were modified in current branch .
"""
    changed_filed are the list of files which were modified in current branch.
    E.g. changed_files = ["tools/ci_static_check_reports/__init__.py", "tools/ci_static_check_reports/setup.py", ...]
    """
changed_files
List[str]