관리-도구
편집 파일: reporter.cpython-311.pyc
� �܋f� � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ej e � � Zdeeef dej defd �ZdS ) z6Functions for construcing the requested report plugin.� N)�Dict)� BaseFormatter)�LoadedPlugin� reporters�options�returnc �� � |j }|j dk rd}n |j dk rd} | | }n3# t $ r& t � d|� � | d }Y nw xY w|� |� � S )a� Make the formatter from the requested user options. - if :option:`flake8 --quiet` is specified, return the ``quiet-filename`` formatter. - if :option:`flake8 --quiet` is specified at least twice, return the ``quiet-nothing`` formatter. - otherwise attempt to return the formatter by name. - failing that, assume it is a format string and return the ``default`` formatter. � zquiet-filename� z quiet-nothingz5%r is an unknown formatter. Falling back to default.�default)�format�quiet�KeyError�LOG�warning�obj)r r �format_name� format_plugins �h/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/plugins/reporter.py�maker s� � � �.�K��}����&��� ��!� � �%��-�!�+�.� � ��� -� -� -����C�� � � � "�)�,� � � �-���� ���W�%�%�%s �- �-A�A)�__doc__�argparse�logging�typingr �flake8.formatting.baser �flake8.plugins.finderr � getLogger�__name__r �str� Namespacer � � r �<module>r# s� �� <� <� ���� ���� � � � � � � 0� 0� 0� 0� 0� 0� .� .� .� .� .� .��g���!�!��&��C��%�&�&� � �&� �&� &� &� &� &� &r"