From bea7a3ea456a4feeabe1c8a0dd94f27cd835b6b3 Mon Sep 17 00:00:00 2001 From: Fero Forgac <36601754+4gac@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:02:20 +0200 Subject: [PATCH] Create code-style.yml --- .github/workflows/code-style.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/code-style.yml diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml new file mode 100644 index 0000000..3fdb435 --- /dev/null +++ b/.github/workflows/code-style.yml @@ -0,0 +1,16 @@ +name: Code style +on: [push, pull_request] +jobs: + code-style: + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - name: Check formatting + uses: chartboost/ruff-action@v1 + with: + args: 'format --check' + - name: Check coding style + uses: chartboost/ruff-action@v1 + with: + args: 'check --select F,E,W,I,PLW'