def METHOD_NAME(
    src: Path,
    config: Optional[str] = None,
    line_length: Optional[int] = None,
) -> IsortArgs:
    """Build ``isort.code()`` keyword arguments
    :param src: The relative path to the file. This must be the actual path in the
                repository, which may differ from the path given on the command line in
                case of VSCode temporary files.
    :param config: Path to configuration file
    :param line_length: Maximum line length to use
    """
    isort_args: IsortArgs = {}
    if config:
        isort_args["settings_file"] = config
    else:
        isort_args["settings_path"] = str(find_project_root((str(src),)))
    if line_length:
        isort_args["line_length"] = line_length
    return isort_args