mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 21:10:27 -06:00
14 lines
313 B
Python
14 lines
313 B
Python
from __future__ import print_function
|
|
from __future__ import unicode_literals
|
|
|
|
import os
|
|
import os.path
|
|
|
|
|
|
def uninstall(runner):
|
|
"""Uninstall the pre-commit hooks."""
|
|
if os.path.exists(runner.pre_commit_path):
|
|
os.remove(runner.pre_commit_path)
|
|
print('pre-commit uninstalled')
|
|
return 0
|