Skip to content

Commit

Permalink
Add Github workflows validation to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
camposandro committed Feb 13, 2024
1 parent 9d5ad05 commit b2bd2a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python-project-template/.pre-commit-config.yaml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2bd2a0

Please sign in to comment.