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
File Name : migrate_config.cpython-312.pyc
� x�/iC � �� � d dl mZ d dlZd dlZd dlZd dlmZ d dlZd dlZd dl m Z d dlmZ d dl mZ d dl mZ d dlmZ d d lmZ d d lmZ d dlmZ dd�Zdd �Zdd�Zdd�Zdd�Zddd�Zy)� )�annotationsN)�Callable)� ScalarNode)�InvalidConfigError)�yaml_compose)� yaml_load)� MappingKey)�MappingValue)�match)�SequenceItemc �J � | j d� xs | j � S )N)�#z---)� startswith�strip)�lines �Q/opt/hc_python/lib/python3.12/site-packages/pre_commit/commands/migrate_config.py�_is_header_liner s � ��?�?�<�(�<�� � ��,<�<� c �� � t t | � t � r�| j d� }d}|t |� k r0t || � r"|dz }|t |� k rt || � r�"dj |d | � }dj ||d � } |� d|� �}t |� |} | S | S # t j $ r |� dt j |d� � �} Y | S w xY w)NTr � � zrepos: z )� isinstancer �list� splitlines�lenr �join�yaml� YAMLError�textwrap�indent)�contents�lines�i�header�rest�trial_contentss r �_migrate_mapr'