Updated pre-commit hooks to allow submodules

This commit is contained in:
Rohan Barar 2024-08-09 08:19:29 +10:00
parent c3fc99dda9
commit ed0f7db8ff
2 changed files with 2 additions and 4 deletions

View File

@ -2,7 +2,7 @@ name: Update submodules
on: on:
repository_dispatch: repository_dispatch:
types: update types: update
jobs: jobs:
update: update:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- name: Update module - name: Update module
run: | run: |
git submodule update --init --recursive --checkout -f git submodule update --init --recursive --checkout -f

View File

@ -32,8 +32,6 @@ repos:
- id: detect-private-key - id: detect-private-key
- id: end-of-file-fixer - id: end-of-file-fixer
- id: fix-byte-order-marker - id: fix-byte-order-marker
- id: forbid-new-submodules
- id: forbid-submodules
- id: mixed-line-ending - id: mixed-line-ending
- id: pretty-format-json - id: pretty-format-json
args: [ "--autofix", "--no-sort-keys" ] args: [ "--autofix", "--no-sort-keys" ]