From 32f46f20cf746f7b228697c9136300de2c01cf54 Mon Sep 17 00:00:00 2001 From: Jacob Kraniak <113630934+jacob-kraniak@users.noreply.github.com> Date: Tue, 19 May 2026 21:51:22 -0400 Subject: [PATCH] Add pre-commit workflow for checks and hooks --- .github/workflows/pre-commit.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/pre-commit.yml diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml new file mode 100644 index 0000000..75c2d84 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,33 @@ +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