Skip to content

Commit

Permalink
implemente ruff's github action in django's workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenepix committed Feb 27, 2024
1 parent 8aa753e commit 3e853ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/"
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/ruff.yml

This file was deleted.

0 comments on commit 3e853ed

Please sign in to comment.