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'