
    yIf                    j    d Z ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ dd
Z G d de          ZdS )zwClasses and functions used to mimic normal pylint runs.

This module is considered private and can change at any time.
    )annotations)Sequence)Run)BaseReporter)PYLINTRCargs	list[str]returnc                t    t          d | D                       s|                     ddt                      | S )zGAdd a default pylintrc with the rcfile option in a list of pylint args.c              3     K   | ]}d |v V  	dS )z--rcfileN ).0args     I/var/www/piapp/venv/lib/python3.11/site-packages/pylint/testutils/_run.py	<genexpr>z/_add_rcfile_default_pylintrc.<locals>.<genexpr>   s'      11SzS 111111    r   z	--rcfile=)anyinsertr   )r   s    r   _add_rcfile_default_pylintrcr      sC    11D11111 /A-8--...Kr   c                  *     e Zd ZdZ	 	 dd fdZ xZS )_Runa  Like Run, but we're using an explicitly set empty pylintrc.

    We don't want to use the project's pylintrc during tests, because
    it means that a change in our config could break tests.
    But we want to see if the changes to the default break tests.
    NTr   Sequence[str]reporterBaseReporter | Noneexitboolr
   Nonec                    t          t          |                    }t                                          |||           d S )N)r   listsuper__init__)selfr   r   r   	__class__s       r   r!   z_Run.__init__"   s:     ,DJJ77x.....r   )NT)r   r   r   r   r   r   r
   r   )__name__
__module____qualname____doc__r!   __classcell__)r#   s   @r   r   r      sT          )-	/ / / / / / / / / / /r   r   N)r   r	   r
   r	   )r'   
__future__r   collections.abcr   pylint.lintr   LintRunpylint.reporters.base_reporterr   !pylint.testutils.lint_module_testr   r   r   r   r   r   <module>r/      s   
 
 # " " " " " $ $ $ $ $ $ & & & & & & 7 7 7 7 7 7 6 6 6 6 6 6   / / / / /7 / / / / /r   