From b2bd2a02fe7637232ef8422c93b5fe51d22ab9b3 Mon Sep 17 00:00:00 2001 From: Sandro Campos Date: Tue, 13 Feb 2024 17:56:08 -0500 Subject: [PATCH] Add Github workflows validation to pre-commit --- python-project-template/.pre-commit-config.yaml.jinja | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-project-template/.pre-commit-config.yaml.jinja b/python-project-template/.pre-commit-config.yaml.jinja index fdc2069..3751f3e 100644 --- a/python-project-template/.pre-commit-config.yaml.jinja +++ b/python-project-template/.pre-commit-config.yaml.jinja @@ -37,6 +37,12 @@ repos: - id: validate-pyproject name: Validate pyproject.toml description: Verify that pyproject.toml adheres to the established schema. + # Verify that GitHub workflows are well formed + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.28.0 + hooks: + - id: check-github-workflows + args: ["--verbose"] {%- if 'isort' in enforce_style %} # Automatically sort the imports used in .py files - repo: https://github.com/pycqa/isort