Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ uninstall
Function
uninstall
pre_commit/commands/install_uninstall.py:164–167 ·
view source on GitHub ↗
(config_file: str, hook_types: list[str] | None)
Source
from the content-addressed store, hash-verified
162
163
164
def
uninstall(config_file: str, hook_types: list[str] | None) -> int:
165
for
hook_type in _hook_types(config_file, hook_types):
166
_uninstall_hook_script(hook_type)
167
return
0
Callers
7
main
Function · 0.90
test_install_multiple_hooks_at_once
Function · 0.90
test_uninstall_does_not_blow_up_when_not_there
Function · 0.90
test_uninstall
Function · 0.90
test_uninstall_restores_legacy_hooks
Function · 0.90
test_uninstall_doesnt_remove_not_our_hooks
Function · 0.90
test_install_uninstall_default_hook_types
Function · 0.90
Calls
2
_hook_types
Function · 0.85
_uninstall_hook_script
Function · 0.85
Tested by
6
test_install_multiple_hooks_at_once
Function · 0.72
test_uninstall_does_not_blow_up_when_not_there
Function · 0.72
test_uninstall
Function · 0.72
test_uninstall_restores_legacy_hooks
Function · 0.72
test_uninstall_doesnt_remove_not_our_hooks
Function · 0.72
test_install_uninstall_default_hook_types
Function · 0.72