From 56860e27f45462aee709c420a08bf10b3d5b32a4 Mon Sep 17 00:00:00 2001 From: Kevin Broch Date: Fri, 27 Dec 2024 17:02:04 -0800 Subject: [PATCH 1/2] add python specific pre-commit checks --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c01d26e96..efbe99a24 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,6 +5,10 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: + - id: check-ast + - id: check-builtin-literals + - id: check-case-conflict + - id: check-docstring-first - id: check-symlinks - id: end-of-file-fixer - id: trailing-whitespace From 8ae102fafe9cd832ecfeddb30b6b7c1382832200 Mon Sep 17 00:00:00 2001 From: Kevin Broch Date: Fri, 27 Dec 2024 17:03:46 -0800 Subject: [PATCH 2/2] update pre-commit hook repos to latest versions --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index efbe99a24..2aa207dd5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,14 +21,14 @@ repos: - id: check-yaml - repo: https://github.com/rbubley/mirrors-prettier - rev: v3.3.3 + rev: v3.4.2 hooks: - id: prettier files: \.(json|yml|yaml)$ exclude: schemas/json-schema-draft-07.json - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.29.4 + rev: 0.30.0 hooks: - id: check-jsonschema alias: check-jsonschema-inst