8>s d dl mZ d dlZd dlZd dlZd dlmZ d dlmZ d dl m
Z
d dlmZ d dl
mZ d dlmZ G d d
ZdS ) )annotationsN)Path)
PackageToLint)
PrimerCommand)CompareCommand)PrepareCommand)
RunCommandc R e Zd ZdZddZddZedd Zedd ZdS )Primerz)Main class to handle priming of packages.primer_directoryr json_pathreturnNonec || _ t j d | _ | j dd | _ | j d }| ddd d
| dd
d d
| ddd d
| ddd d
| j d }| dddgdd | j d }| ddd | ddd | ddd | j | _ |
| | _ | j j dk rt }n/| j j dk rt }n| j j dk rt } || j | j | j | _ d S ) Nz
Pylint Primer)progcommandT)destrequiredpreparez--clonezClone all packages.
store_trueF)helpactiondefaultz--checkz0Check consistencies and commits of all packages.z--make-commit-stringzGet latest commit string.z--read-commit-stringzPrint latest commit string.runz--typemainprzType of primer run.)choicesr r comparez--base-filez(Location of output file of the base run.)r r z
--new-filez'Location of output file of the new run.z--commitz+Commit hash of the PR commit being checked.)r argparseArgumentParser_argument_parseradd_subparsers_subparsers
add_parseradd_argument
parse_argsconfig_get_packages_to_lint_from_jsonpackagesr r r r )selfr r
prepare_parser
run_parsercompare_parser
command_classs q/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pylint/testutils/_primer/primer.py__init__zPrimer.__init__ sk 0 ( 7_ M M M0??T @
)44Y??##1,PU $
##C $
##", $
##". $
%0077
vtntBW
)44Y??##; $
##: $
##> $
+6688<