From 6ac6d690dd156ce1b76defb36a01d39b9a02b6d2 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 13 Aug 2023 11:16:38 +1000 Subject: [PATCH] pre-commit: add hook `forbid-submodules` https://github.com/pre-commit/pre-commit-hooks#forbid-submodules If you want to ban them entirely use forbid-submodules. Really this is just one extra check or test we can have. --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3d097c221..48e353b7c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,6 +26,7 @@ repos: args: [--unique] files: ^codespell\.txt$ - id: fix-byte-order-marker + - id: forbid-submodules - id: mixed-line-ending - id: trailing-whitespace - repo: https://github.com/Lucas-C/pre-commit-hooks