관리-도구
편집 파일: repository.cpython-38.pyc
U ,�e� � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlmZ d dlmZ d dl m Z d dlm Z d dlmZ d dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ d d lmZ d dlmZ d dlmZ e�d�Zddd�dd�Z ddd�dd�Z!ddd�dd�Z"ddd�dd�Z#dd d!�d"d#�Z$dd$d!�d%d&�Z%d'd'd'd(�d)d*�Z&d'd+d'd,d-�d.d/�Z'd'd+d'd,d-�d0d1�Z(d'd+d'd,d-�d2d3�Z)d4d+d$d5�d6d7�Z*d'd+d,d8�d9d:�Z+dS );� )�annotationsN)�Any)�Sequence)� languages)� load_manifest)�LOCAL)�META)� parse_version)�Hook)�environment_dir)�Prefix)�Store)�clean_path_on_failure)�rmtreeZ pre_commit�str)�venv�returnc C s t j�| d�S )Nz.install_state_v1��os�path�join�r � r �C/opt/hc_python/lib/python3.8/site-packages/pre_commit/repository.py�_state_filename_v1 s r c C s t j�| d�S )Nz.install_state_v2r r r r r �_state_filename_v2 s r � Sequence[str]�object)�additional_depsr c C s d| iS )N�additional_dependenciesr )r r r r �_state# s r z object | Nonec C sB t | �}tj�|�sd S t|��}t�|�W 5 Q R � S Q R X d S �N)r r r �exists�open�json�load)r �filename�fr r r �_read_state'