From 592fbae2f58d8cc75262711f04b7593cecc967fe Mon Sep 17 00:00:00 2001 From: "Bobby R. Bruce" Date: Thu, 5 Oct 2023 19:40:36 -0700 Subject: [PATCH] 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 --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ab2b8be79f..d03de87ee1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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