pre-commit/tests/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_test.py perform autoupdate without Store contention 2023-04-29 15:32:20 -04:00
clean_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
gc_test.py move logic for gc back to commands.gc 2025-11-19 14:32:09 -05:00
hazmat_test.py add pre-commit hazmat 2025-11-22 13:53:53 -05:00
hook_impl_test.py Add pre-rebase hook support 2023-03-11 15:17:42 -05:00
init_templatedir_test.py Change cmd_output_bs retcode arg to a boolean check 2022-10-30 14:49:42 -05:00
install_uninstall_test.py fix uninstall without -t to remove all pre-commit managed hooks 2026-03-11 19:11:07 +09:00
migrate_config_test.py fix migrate-config for purelib yaml 2024-10-08 11:46:48 -04:00
run_test.py Add fail-fast argument for run command 2025-09-06 14:14:23 -04:00
sample_config_test.py drop python 3.6 support 2022-01-18 18:44:20 -05:00
try_repo_test.py Improve hook duration timing 2023-10-13 16:40:30 +01:00
validate_config_test.py remove pre-commit-validate-config and pre-commit-validate-manifest 2022-12-27 13:05:30 -05:00
validate_manifest_test.py remove pre-commit-validate-config and pre-commit-validate-manifest 2022-12-27 13:05:30 -05:00