From a09ffbb19dc45dc5f3f37c883b4d860de7bee9b0 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Tue, 29 Jul 2025 21:57:23 +0100 Subject: [PATCH 1/2] Add json validator as pre-commit step --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d1ef378193e43..32687d8458a62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,7 @@ repos: hooks: - id: end-of-file-fixer - id: trailing-whitespace + - id: check-json - repo: https://github.com/localstack/pre-commit-hooks rev: v1.2.1 From 84357fe0dca4ac0b8ebaf88556ebdb19a6075a6c Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Tue, 29 Jul 2025 22:10:09 +0100 Subject: [PATCH 2/2] Limit to snapshot/validation files --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 32687d8458a62..99a259f1559d5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,6 +23,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - id: check-json + files: .*\.(snapshot|validation)\.json - repo: https://github.com/localstack/pre-commit-hooks rev: v1.2.1