PATH:
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pre_commit
/
meta_hooks
/
__pycache__
� p0i� � � � d dl mZ d dlZd dlmZ d dlmZ d dlm Z d dl mZ d dlm Z d dlmZ d dlmZ dd �Zd dd �Zedk( r e e� � �y)� )�annotationsN)�Sequence)�git)�load_config)� Classifier)� all_hooks)�Storec �R � t | � }t j t j � |d |d � }d}t |t � � D ]S }|j s|j dk( r�t |j |� � r�:t |j � d�� d}�U |S )N�files�excluder �failz" does not apply to this repository� ) r r �from_configr � get_all_filesr r � always_run�language�any�filenames_for_hook�print�id)�config_file�config� classifier�retv�hooks �V/opt/hc_python/lib/python3.12/site-packages/pre_commit/meta_hooks/check_hooks_apply.py�check_all_hooks_match_filesr s� � � �� %�F��'�'�����V�G�_�f�Y�.?��J� �D��&�%�'�*���?�?�d�m�m�v�5���Z�2�2�4�8�9��T�W�W�I�?�@�A��D� +� �K� c �� � t j � }|j ddt j g�� |j | � }d}|j D ] }|t |� z }� |S )N� filenames�*)�nargs�defaultr )�argparse�ArgumentParser�add_argument�C�CONFIG_FILE� parse_argsr r )�argv�parser�argsr �filenames r �mainr. sc � � � $� $� &�F� ����3������H����T�"�D��D��N�N���+�H�5�5�� #��Kr �__main__)r �str�return�int)N)r* zSequence[str] | Noner1 r2 )� __future__r r$ �collections.abcr �pre_commit.constants� constantsr'