Uname : Linux premium36.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Soft : LiteSpeed
Ip : 198.54.115.237
Port : 443
~
/
proc
/
self
/
root
/
opt
/
hc_python
/
lib64
/
python3.12
/
site-packages
/
pre_commit
/
commands
/
__pycache__
[ HOME ]
Exec
Submit
hazmat.cpython-312.pyc
� x�/i � � � d dl mZ d dlZd dlZd dlmZ d dlmZ d d�Zdd�Z dd�Z dd�Zdd �Zdd �Z ddd�Zedk( r e e� � �y)� )�annotationsN)�Sequence)� normalize_cmdc � � | j d�� }|j dd�� }|j d� |j dt j �� |j d d �� }|j dt j �� |j dd�� }|j dt j �� y ) N�tool)�dest�cdz"cd to a subdir and run the command)�help�subdir�cmd)�nargs�ignore-exit-codez(run the command but ignore the exit code�n1z!run the command once per filename)�add_subparsers� add_parser�add_argument�argparse� REMAINDER)�parser� subparsers� cd_parser�ignore_exit_code_parser� n1_parsers �I/opt/hc_python/lib/python3.12/site-packages/pre_commit/commands/hazmat.py�add_parsersr s� � ��&�&�F�&�3�J��%�%��7� &� �I� ���8�$� ���5��(:�(:��;�(�3�3��!K� 4� �� �(�(��h�6H�6H�(�I��%�%��6� &� �I� ���5��(:�(:��;� c � � t t | � � D ] \ }}|dk( s�t | � |z } n t d� �| d |dz | |d fS )Nz--zhazmat entry must end with `--`� )� enumerate�reversed�len� SystemExit)r �idx�val�splits r �_cmd_filenamesr&