mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
15 lines
352 B
Python
15 lines
352 B
Python
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
import os.path
|
|
|
|
from pre_commit import output
|
|
from pre_commit.util import rmtree
|
|
|
|
|
|
def clean(runner):
|
|
if os.path.exists(runner.store.directory):
|
|
rmtree(runner.store.directory)
|
|
output.write_line('Cleaned {}.'.format(runner.store.directory))
|
|
return 0
|