PATH:
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pre_commit
/
commands
/
__pycache__
� p0io � � � d dl mZ d dlZd dlZd dlmZ d dlmZ d dl m Z d dl mZ ej d� Z d d d�Zy)� )�annotationsN)�install)�Store)�CalledProcessError)� cmd_output� pre_commitc � � t | ||d||�� t ddd� \ }}}t j j t j j |j � � � }t j j |� }||k7 r.t j d� t j d|� d�� y # t $ r d }Y �`w xY w) NT)� hook_types� overwrite�skip_on_missing_config�git_dir�git�configzinit.templateDirz2`init.templateDir` not set to the target directoryz,maybe `git config --global init.templateDir z`?r ) r r �os�path�realpath� expanduser�stripr �logger�warning) �config_file�store� directoryr r �_�out�configured_path�dests �S/opt/hc_python/lib/python3.12/site-packages/pre_commit/commands/init_templatedir.py�init_templatedirr s� � � �� ���5�� �L��u�h�0B�C� ��3�� �'�'�*�*�2�7�7�+=�+=�c�i�i�k�+J�K�� �7�7���I�&�D��$�����K�L����E�d�V�2�N�O��� � ����s �C �C�C)T)r �strr r r r r zlist[str] | Noner �bool�return�int)� __future__r �logging�os.pathr �%pre_commit.commands.install_uninstallr �pre_commit.storer �pre_commit.utilr r � getLoggerr r � � r �<module>r- sn �� "� � � 9� "� .� &� �� � �<� (�� (,� �� �� � � � %� � !%� � � r,
[-] clean.cpython-312.pyc
[edit]
[-] hazmat.cpython-312.pyc
[edit]
[-] init_templatedir.cpython-312.pyc
[edit]
[-] validate_config.cpython-312.pyc
[edit]
[-] migrate_config.cpython-312.pyc
[edit]
[+]
..
[-] try_repo.cpython-312.pyc
[edit]
[-] gc.cpython-312.pyc
[edit]
[-] validate_manifest.cpython-312.pyc
[edit]
[-] autoupdate.cpython-312.pyc
[edit]
[-] run.cpython-312.pyc
[edit]
[-] __init__.cpython-312.pyc
[edit]
[-] install_uninstall.cpython-312.pyc
[edit]
[-] sample_config.cpython-312.pyc
[edit]
[-] hook_impl.cpython-312.pyc
[edit]