From ed0f7db8ffd8cbfed2d93b1d7abe01ec3b9b5254 Mon Sep 17 00:00:00 2001 From: Rohan Barar Date: Fri, 9 Aug 2024 08:19:29 +1000 Subject: [PATCH] Updated pre-commit hooks to allow submodules --- .github/workflows/update.yaml | 4 ++-- .pre-commit-config.yaml | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update.yaml b/.github/workflows/update.yaml index 199f58d..f939450 100644 --- a/.github/workflows/update.yaml +++ b/.github/workflows/update.yaml @@ -2,7 +2,7 @@ name: Update submodules on: repository_dispatch: types: update - + jobs: update: runs-on: ubuntu-latest @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - + - name: Update module run: | git submodule update --init --recursive --checkout -f diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 811e1b4..b5f2edb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,8 +32,6 @@ repos: - id: detect-private-key - id: end-of-file-fixer - id: fix-byte-order-marker - - id: forbid-new-submodules - - id: forbid-submodules - id: mixed-line-ending - id: pretty-format-json args: [ "--autofix", "--no-sort-keys" ]