From fbe82be4b3031403489d03e07c9c49d28edca410 Mon Sep 17 00:00:00 2001 From: Michael T Halligan Date: Sat, 21 Dec 2024 23:30:23 +0300 Subject: [PATCH] Adds pre-commit hook (#5) --- .github/workflows/pre-commit.yml | 4 ++++ .pre-commit-config.yaml | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index c2f7e71..494595b 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -12,3 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-python@v3 - uses: pre-commit/action@v3.0.0 + - name: Install jsonlint + run: npm install -g jsonlint + - name: Run jsonlint + run: jsonlint profile.json diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6685900..510891a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,7 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v5.0.0 hooks: - id: check-json - - id: check-yaml - id: trailing-whitespace - id: end-of-file-fixer