# https://github.com/j178/prek
name: Manual hooks

on: [pull_request]

permissions:
  contents: read

jobs:
  pre-commit:
    name: Run pre-commit
    runs-on: ubuntu-latest
    steps:
      - name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
        uses: actions/checkout@v6
        with:
          persist-credentials: false
      - uses: j178/prek-action@v2
        with:
          install-only: true
      - name: Run manual pre-commit hooks
        run: prek run --color=always --all-files --hook-stage manual
