Skip to content

Commit

Permalink
Replace isort/flake8 with ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Mar 30, 2024
1 parent 34feaf1 commit d105e65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
30 changes: 7 additions & 23 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Lint
on: [push]

jobs:
flake8:
name: flake8
ruff:
name: ruff
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -13,26 +13,10 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install flake8
run: pip install --upgrade flake8
- name: Run flake8
- name: Install ruff
run: pip install --upgrade ruff
- name: Run ruff
uses: liskin/gh-problem-matcher-wrap@v1
with:
linters: flake8
run: flake8

isort:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- run: python -m pip install isort
- name: isort
uses: liskin/gh-problem-matcher-wrap@v1
with:
linters: isort
run: isort --check --diff djangocms_admin_style
linters: ruff
run: ruff
1 change: 0 additions & 1 deletion djangocms_admin_style/templatetags/admin_style_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from django.template.loader import render_to_string
from django.utils.translation import gettext


# We follow the Semantic versioning convention
# minor - Refers to the minor release track (3.x.1)
# patch - Refers to the patch release track (3.4.x)
Expand Down

0 comments on commit d105e65

Please sign in to comment.