Skip to content

Commit

Permalink
Add djLint linting to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ilesoft committed Dec 18, 2024
1 parent da68d29 commit 453d426
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@ jobs:
black -t py312 --check .
black -t py312 --check web/**/*.py.example
djlint --check .
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12.1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install 'djlint==1.36.3'
- name: Check formatting
run: |
djlint --profile=django --lint --ignore "H006,H013,H030,H031,D018" .
unit-tests-sqlite:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down

0 comments on commit 453d426

Please sign in to comment.