Skip to content

Commit

Permalink
Update linter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Smartappli authored Jun 25, 2024
1 parent d0046a1 commit 9e94526
Showing 1 changed file with 22 additions and 21 deletions.
43 changes: 22 additions & 21 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ concurrency:
cancel-in-progress: true

jobs:
ruff:
ruff-lint:
name: Ruff
runs-on: ubuntu-latest
steps:
Expand All @@ -24,7 +24,7 @@ jobs:

flake8-lint:
runs-on: ubuntu-latest
name: Flake8 Lint
name: Flake8
steps:
- name: Check out source repository
uses: actions/checkout@v4
Expand All @@ -44,8 +44,28 @@ jobs:
max-line-length: "80"
plugins: "flake8-builtins flake8-commas flake8-errmsg flake8-fixme pep8-naming flake8-pie flake8-use-pathlib flake8-return flake8-type-checking flake8-todo flake8-tidy-imports flake8-bugbear flake8-django flake8-bandit TorchFix pandas-vet flake8-logging-format flake8-requirements"

dj-lint:
runs-on: ubuntu-latest
name: Django Lint
steps:
- name: Check out source repository
uses: actions/checkout@v4

- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'

- name: DjLint Linter
run: |
python -m pip install --upgrade pip
pip install djlint
djlint ./templates --extension=html --lint
pylint:
name: PyLint
needs: [dj-lint,flake8-lint,ruff-lint]
strategy:
max-parallel: 15
matrix:
Expand Down Expand Up @@ -91,22 +111,3 @@ jobs:
python -m uv pip install -r requirements.txt
- name: Analysing the code with pylint
run: pylint --load-plugins pylint_django --django-settings-module=lab.settings "**/*.py"

dj-lint:
runs-on: ubuntu-latest
name: Django Lint
steps:
- name: Check out source repository
uses: actions/checkout@v4

- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'

- name: DjLint Linter
run: |
python -m pip install --upgrade pip
pip install djlint
djlint ./templates --extension=html --lint

0 comments on commit 9e94526

Please sign in to comment.