From de0c600983e77ce1144e03b7cf95b36238f6ae72 Mon Sep 17 00:00:00 2001 From: Richard Date: Wed, 13 Dec 2023 11:45:54 +0100 Subject: [PATCH] add github action for ruff and black linters --- .github/workflows/linters.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/linters.yml diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml new file mode 100644 index 0000000..8bfefab --- /dev/null +++ b/.github/workflows/linters.yml @@ -0,0 +1,31 @@ +name: Linters + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + ruff: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: ruff + uses: chartboost/ruff-action@v1 + + black: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: black + uses: psf/black@stable