`3w ~ d Z ddlZddlZddlmZ ddlmZmZ ddlm Z ddl
mZ dZ G d d
Z
d Zd Zd
ZdS )z&Command line interface for pydocstyle. N )check)ConfigurationParserIllegalConfiguration)log)Error)mainc e Zd ZdZdZdZdS )
ReturnCoder r N)__name__
__module____qualname__no_violations_foundviolations_foundinvalid_options `/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/pydocstyle/cli.pyr r
s OOOr r c
t j t j t } t | | n# t $ r t j
cY S w xY w| }t | t j d |j
t _
|j t _ g } | D ]0\ }}}}}| t% |f|||| 1nB# t $ r5}t j |j d t j
cY d }~S d }~ww xY wd} |D ]9}t+ |d r"t, j d|z | dz
} :| dk r
t j }
nt j }
|j rt9 | |
S )Nzstarting in debug mode.)selectignore_decoratorsproperty_decoratorsignore_self_only_initr codez%s
r )r setLevelloggingDEBUGr setup_stream_handlersget_default_run_configurationparser r r get_user_run_configurationdebugexplainr sourceget_files_to_checkextendr errorargshasattrsysstdoutwriter r countprint)confrun_conferrorsfilename
checked_codesr r r r( r. exit_codes r run_pydocstyler6 s L D$<<>>???*
* * *))))* ..00H (###I'((($EM?EL
F*
$
$
&
&
!MMK(&7(;*?
* * * %*Q- )))))))*
E 5&!! -JVe^,,,
zz2 / ~
es1 A$ $A=<A=AD" "
E!,*EE!E!c j t j t dS # t $ r Y dS w xY w)zRun pydocstyle as a script.N)r+ exitr6 KeyboardInterruptr r r r r L sE
!!"""""
s $
22c G d dt j }g t _ t j t
j }| t j | | | j
r | t j nF| j r | t j
n| t j t j | t j t
j }d}| t j | | t j t j | dS )z8Set up logging stream handlers according to the options.c e Zd Zd ZdS )+setup_stream_handlers.