From 4463db330a403eb53cafe9bde2f9d9046dffbd18 Mon Sep 17 00:00:00 2001 From: Bojan Jakimovski Date: Tue, 20 Aug 2024 01:12:35 +0200 Subject: [PATCH] Updated the ruff GH Action --- .github/workflows/python-formating.yml | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/.github/workflows/python-formating.yml b/.github/workflows/python-formating.yml index 432e06c..50b24ea 100644 --- a/.github/workflows/python-formating.yml +++ b/.github/workflows/python-formating.yml @@ -1,17 +1,16 @@ -name: Check lint format and commit with ruff -on: [push, pull_request] +name: Lint and Commit +on: push jobs: lint: - runs-on: ubuntu-latest + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: chartboost/ruff-action@v1 - with: - args: --check . - fix_args: --fix . - config: .ruff.toml - - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: 'style fixes by ruff' \ No newline at end of file + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - run: pip install ruff + - run: | + ruff check . + ruff fix . + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'style fixes by ruff' \ No newline at end of file