From e61898897d8a1adcbf417cdb108ab2eead9b6bdb Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 18 Mar 2025 19:16:47 +0100 Subject: [PATCH] Github action: run ruff on the python code --- .github/workflows/code-quality.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index b7a3fb21a..40ab0615d 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -167,3 +167,23 @@ jobs: - name: Check run: npx --yes @taplo/cli fmt --check + + python: + name: Style/Python + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + with: + persist-credentials: false + + - name: ruff + uses: astral-sh/ruff-action@v3 + with: + src: "./util" + + - name: ruff - format + uses: astral-sh/ruff-action@v3 + with: + src: "./util" + args: format --check