Skip to content

Commit 288f9b2

Browse files
committed
Refactor pre-commit hooks to remove redundant local repo entries
1 parent 365fe60 commit 288f9b2

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

scripts/config/pre-commit.yaml

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,43 +30,37 @@ repos:
3030
entry: ./scripts/githooks/sort-dictionary.sh
3131
language: script
3232
pass_filenames: false
33-
- repo: local
34-
hooks:
33+
3534
- id: scan-secrets
3635
name: Scan secrets
3736
entry: /usr/bin/env check=whole-history ./scripts/githooks/scan-secrets.sh
3837
language: script
3938
pass_filenames: false
40-
- repo: local
41-
hooks:
39+
4240
- id: check-file-format
4341
name: Check file format
4442
entry: /usr/bin/env check=branch ./scripts/githooks/check-file-format.sh
4543
language: script
4644
pass_filenames: false
47-
- repo: local
48-
hooks:
45+
4946
- id: check-markdown-format
5047
name: Check Markdown format
5148
entry: /usr/bin/env check=branch ./scripts/githooks/check-markdown-format.sh
5249
language: script
5350
pass_filenames: false
54-
- repo: local
55-
hooks:
51+
5652
- id: check-english-usage
5753
name: Check English usage
5854
entry: /usr/bin/env check=branch ./scripts/githooks/check-english-usage.sh
5955
language: script
6056
pass_filenames: false
61-
- repo: local
62-
hooks:
57+
6358
- id: lint-terraform
6459
name: Lint Terraform
6560
entry: ./scripts/githooks/check-terraform-format.sh
6661
language: script
6762
pass_filenames: false
68-
- repo: local
69-
hooks:
63+
7064
- id: generate-terraform-docs
7165
name: Generate Terraform Docs
7266
entry: ./scripts/githooks/check-terraform-docs.sh

0 commit comments

Comments
 (0)