From ad1a1f25e4f42cb0f6bba66c53f9bc114c5dcce0 Mon Sep 17 00:00:00 2001 From: "Tom D." <15268361+anastygnome@users.noreply.github.com> Date: Fri, 31 Oct 2025 15:49:39 +0000 Subject: [PATCH 1/3] Set the version of python to the MSV --- .github/workflows/pre-commit.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index d0707c1..e0c41f1 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -11,4 +11,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 + with: + python-version: '3.10' - uses: pre-commit/action@v3.0.1 From 8219b990e446f8cc2232c332c9e710d89d5c18aa Mon Sep 17 00:00:00 2001 From: "Tom D." <15268361+anastygnome@users.noreply.github.com> Date: Fri, 31 Oct 2025 18:35:09 +0000 Subject: [PATCH 2/3] Update pre-commit.yaml --- .github/workflows/pre-commit.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index e0c41f1..e4fc085 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -1,16 +1,10 @@ name: pre-commit -on: - pull_request: - push: - branches: [main] +on: [pull_request] jobs: - pre-commit: + prek: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.10' - - uses: pre-commit/action@v3.0.1 + - uses: actions/checkout@v5 + - uses: j178/prek-action@v1 From 9110c023433b4b01308310228c04648bc2625300 Mon Sep 17 00:00:00 2001 From: "Tom D." <15268361+anastygnome@users.noreply.github.com> Date: Fri, 31 Oct 2025 18:37:23 +0000 Subject: [PATCH 3/3] Update pre-commit.yaml --- .github/workflows/pre-commit.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index e4fc085..019f18d 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -1,9 +1,11 @@ name: pre-commit -on: [pull_request] - +on: + pull_request: + push: + branches: [main] jobs: - prek: + pre-commit: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5