From 9619713088f3bc39be9df2acbc1210e9ae5eace1 Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Wed, 9 Sep 2026 14:03:31 -0300 Subject: [PATCH] move to prek instead of pre-commits --- .github/workflows/prek.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/prek.yml diff --git a/.github/workflows/prek.yml b/.github/workflows/prek.yml new file mode 100644 index 00000000..63901778 --- /dev/null +++ b/.github/workflows/prek.yml @@ -0,0 +1,30 @@ +name: Run prek (pre-commits) + +# no permissions by default +permissions: {} + +on: + pull_request: + push: + +jobs: + run: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: Set up Python + uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 + with: + python-version: "3.x" + + - name: Install prek + run: | + pip install prek + + - name: Run linters + run: > + prek run --all-files