From ef0ea02d5b7405859ee2626bbc2d6e7461994553 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Sat, 26 Jul 2025 21:44:33 +0200 Subject: [PATCH] Create pre-commit.yml This should not pass at this stage as the problems with the README.md file are addressed in a different branch --- .github/workflows/pre-commit.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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 00000000..83163a38 --- /dev/null +++ b/.github/workflows/pre-commit.yml @@ -0,0 +1,27 @@ +name: pre-commit + +# Trigger: This workflow runs on every push to the repository +on: + push: + +# Permissions: Only read access to repository contents is needed +permissions: + contents: read + +jobs: + # Job: pre-commit + # Purpose: Executes the pre-commit checks against the codebase + pre-commit: + runs-on: ubuntu-latest + steps: + - name: Checkout [${{ github.repository }}] + uses: actions/checkout@v4 + + - name: Install Node 22 + uses: actions/setup-node@v4 + with: + node-version: '22' + + - uses: pre-commit/action@v3.0.1 + with: + extra_args: '--all-files --config src/py/.pre-commit-config.yaml'