pre-commit/pre_commit/commands
Daisuke Sato 16f7c46de5 fix uninstall without -t to remove all pre-commit managed hooks
Previously, `pre-commit uninstall` without `-t` only removed hooks
listed in `default_install_hook_types` from the config. This meant
hooks installed with e.g. `-t pre-push` would not be removed unless
`-t pre-push` was explicitly passed to uninstall.

Now, when `-t` is not specified, uninstall scans all known hook types
and removes any that are managed by pre-commit (via `is_our_script`).

Fixes #364

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 19:11:07 +09:00
..
__init__.py Move commands into their own files. 2014-06-13 19:52:14 -07:00
autoupdate.py python3.9+ 2023-10-28 14:20:37 -04:00
clean.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
gc.py move logic for gc back to commands.gc 2025-11-19 14:32:09 -05:00
hazmat.py add pre-commit hazmat 2025-11-22 13:53:53 -05:00
hook_impl.py Add fail-fast argument for run command 2025-09-06 14:14:23 -04:00
init_templatedir.py implement default_install_hook_types 2022-04-02 15:11:31 -04:00
install_uninstall.py fix uninstall without -t to remove all pre-commit managed hooks 2026-03-11 19:11:07 +09:00
migrate_config.py py310+ 2025-10-09 17:44:05 -04:00
run.py Add fail-fast argument for run command 2025-09-06 14:14:23 -04:00
sample_config.py remove obsolete comment 2022-11-27 16:30:58 -05:00
try_repo.py add pre_commit.yaml module 2023-01-02 18:42:34 -05:00
validate_config.py python3.9+ 2023-10-28 14:20:37 -04:00
validate_manifest.py python3.9+ 2023-10-28 14:20:37 -04:00