From 394526abe058ff08b330945a613c650e34c912e5 Mon Sep 17 00:00:00 2001 From: Jakub Zenon Kujawa <50410667+c0deplayer@users.noreply.github.com> Date: Tue, 29 Oct 2024 19:59:06 +0100 Subject: [PATCH] chore(ci): Add Python linting workflow to GitHub Actions --- .github/workflows/ruff.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml new file mode 100644 index 0000000..16d86ac --- /dev/null +++ b/.github/workflows/ruff.yml @@ -0,0 +1,20 @@ +name: Lint and Commit +on: [ push, pull_request ] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - uses: astral-sh/ruff-action@v1 + with: + args: --check . + fix_args: --fix . + + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: 'style: Style fixes by ruff'