def METHOD_NAME(
    self, package_name: str, data: PackageToLint
) -> tuple[list[OldJsonExport], list[Message]]:
    # We want to test all the code we can
    enables = ["--enable-all-extensions", "--enable=all"]
    # Duplicate code takes too long and is relatively safe
    # TODO: Find a way to allow cyclic-import and compare output correctly
    disables = ["--disable=duplicate-code,cyclic-import"]
    additional = ["--clear-cache-post-run=y"]
    arguments = data.pylint_args + enables + disables + additional
    output = StringIO()
    reporter = JSONReporter(output)
    print(f"Running 'pylint {', '.join(arguments)}'")
    pylint_exit_code = -1
    try:
        Run(arguments, reporter=reporter)
    except SystemExit as e:
        pylint_exit_code = int(e.code)  # type: ignore[arg-type]
    readable_messages: str = output.getvalue()
    messages: list[OldJsonExport] = json.loads(readable_messages)
    fatal_msgs: list[Message] = []
    if pylint_exit_code % 2 == 0:
        print(f"Successfully primed {package_name}.")
    else:
        fatal_msgs = self._filter_fatal_errors(messages)
        if fatal_msgs:
            warnings.warn(
                f"Encountered fatal errors while priming {package_name} !\n"
                f"{self._print_msgs(fatal_msgs)}\n\n",
                stacklevel=2,
            )
    return messages, fatal_msgs