python,misc: Add destroyed-symlinks hook to pre-commit

This hook detects which symlinks are changed to regular files with the
content of a path which that symlink was pointing to.

Change-Id: Ic925f02debc65c7c04e6d4cc3a25415b30858977
This commit is contained in:
Bobby R. Bruce
2023-10-05 19:40:36 -07:00
parent 768e488a6b
commit 592fbae2f5

View File

@@ -66,6 +66,7 @@ repos:
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: requirements-txt-fixer
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.3