mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
14 lines
335 B
Python
14 lines
335 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
import os.path
|
|
|
|
from pre_commit.util import rmtree
|
|
|
|
|
|
def clean(runner):
|
|
if os.path.exists(runner.store.directory):
|
|
rmtree(runner.store.directory)
|
|
print('Cleaned {0}.'.format(runner.store.directory))
|
|
return 0
|