def _prepare_pylint_args(args):
    """
    Filter and extend Pylint command line arguments.

    --output-format=parsable is required for us to parse the output.

    :param args: list of Pylint arguments.
    :returns extended list of Pylint arguments.
    """

    # Drop an already specified output format, as we need 'parseable'
    args = [a for a in args if not a.startswith("--output-format=")]

    args.append("--output-format=parseable")

    return args