From 2b3d3f8e552d45d023b5546b174818e2dfd2f173 Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Mon, 23 Sep 2024 21:40:40 +0100 Subject: [PATCH 1/2] Add check-json and meta pre-commit hooks --- .pre-commit-config.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1d01eaa..fa4f4fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,9 @@ # See https://pre-commit.com/hooks.html for more hooks default_install_hook_types: [pre-commit, pre-push, commit-msg] repos: +- repo: meta + hooks: + - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: @@ -11,7 +14,8 @@ repos: - id: check-merge-conflict - id: check-shebang-scripts-are-executable - id: check-symlinks - - id: check-toml + - id: check-json + - id: check-toml - id: check-vcs-permalinks - id: check-yaml - id: end-of-file-fixer From 57f6b3e93c6615dd4ffa7516ac42b280f2e946dc Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Mon, 23 Sep 2024 21:42:37 +0100 Subject: [PATCH 2/2] Fix indentation --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa4f4fe..def4400 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,7 +15,7 @@ repos: - id: check-shebang-scripts-are-executable - id: check-symlinks - id: check-json - - id: check-toml + - id: check-toml - id: check-vcs-permalinks - id: check-yaml - id: end-of-file-fixer