name: Pre-commit Checks on: push: branches: [ "JK_Revisions" ] pull_request: branches: [ "JK_Revisions" ] schedule: - cron: "0 8 * * 1" # Weekly on Mondays at 08:00 UTC workflow_dispatch: # Allows manual trigger from Actions tab jobs: pre-commit: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install pre-commit run: | python -m pip install --upgrade pip pip install pre-commit - name: Run pre-commit hooks run: pre-commit run --all-files --show-diff-on-failure