From 3e853ed4d981093020ecebade4a5360b68d56e1b Mon Sep 17 00:00:00 2001 From: Xenepix Date: Tue, 27 Feb 2024 18:39:41 +0100 Subject: [PATCH] implemente ruff's github action in django's workflow --- .github/workflows/django.yml | 12 ++++++------ .github/workflows/ruff.yml | 12 ------------ 2 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 .github/workflows/ruff.yml diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 11c5231b..148305c4 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -49,6 +49,12 @@ jobs: with: ref: ${{ github.event.pull_request.head.sha || github.ref }} + - name: Linting code with ruff + uses: chartboost/ruff-action@v1 + with: + src: "." + args: --config .github/pyproject.toml + - name: Set up python uses: actions/setup-python@v5 with: @@ -62,12 +68,6 @@ jobs: pip-compile ./requirements/development.txt --output-file ./full-requirements.txt --resolver=backtracking pip install -r ./full-requirements.txt - - name: Lint with ruff - run: | - pip install ruff - # stop the build if there are Python syntax errors or undefined names - ruff . --config ./.github/pyproject.toml - - name: Tests and coverage run: | export PYTHONPATH="$PYTHONPATH:./django-napse/" diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml deleted file mode 100644 index 6b6298ea..00000000 --- a/.github/workflows/ruff.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Ruff -on: [push, pull_request] -jobs: - ruff: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: chartboost/ruff-action@v1 - with: - src: "." - # args: --config .github/pyproject.toml - args: --config ./pyproject.toml