diff --git a/.github/workflows/git-hooks.yaml b/.github/workflows/git-hooks.yaml new file mode 100644 index 0000000000..d1638bcad7 --- /dev/null +++ b/.github/workflows/git-hooks.yaml @@ -0,0 +1,20 @@ +name: "Git Hooks" + +on: + pull_request: ~ + push: + branches: + - main + +jobs: + run-prek: + name: prek run --all-files + runs-on: ubuntu-24.04 + timeout-minutes: 1 + + steps: + - name: Checkout + uses: actions/checkout@v6.0.2 + + - name: Run prek + uses: j178/prek-action@v2.0.1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000000..e80d3a893d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,5 @@ +repos: + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.37.1 + hooks: + - id: check-github-workflows