From 7f25a7483d3e46318ad8c5fec268d0a4f2b7a76b Mon Sep 17 00:00:00 2001 From: Johanna England Date: Fri, 18 Oct 2024 10:21:02 +0200 Subject: [PATCH] Add djLint to linting workflow --- .github/workflows/lint.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3c8a387c..2de9f42e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,3 +14,20 @@ jobs: - uses: astral-sh/ruff-action@v1 with: changed-files: 'true' + + djlint: + runs-on: ubuntu-latest + name: Lint HTML + steps: + - uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + + - name: Install dependencies + run: | + pip install -U pip + pip install djlint + + - name: Lint + run: djlint --lint .