set stages for `destroyed-symlinks`

The 'destroyed-symlinks' hook runs upon 'commit-msg' hook,
however when used in 'git submodules', repository scope breaks

> pre_commit_hooks.util.CalledProcessError: (('git', 'status',
> '--porcelain=v2', '-z', '--', '.../COMMIT_EDITMSG'), 0, 128, '',
> b"fatal: .../COMMIT_EDITMSG: '...' is outside repository at '...'\n")
---

Signed-off-by: Adrian DC <radian.dc@gmail.com>
This commit is contained in:
Adrian DC 2024-08-22 21:30:48 +02:00 committed by Anthony Sottile
parent 5b5b46dc75
commit c7d1e85f24
1 changed files with 1 additions and 0 deletions

View File

@ -115,6 +115,7 @@
entry: destroyed-symlinks
language: python
types: [file]
stages: [pre-commit, pre-push, manual]
- id: detect-aws-credentials
name: detect aws credentials
description: detects *your* aws credentials from the aws cli credentials file.