diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2788d3c..853c134 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,3 +44,11 @@ jobs: - name: SAST (bandit) — advisory run: uv run bandit -r src/ apps/ mcp/ -c pyproject.toml continue-on-error: true + + - name: Lint HTML (djlint check) + run: uv run djlint apps/ --lint + continue-on-error: ${{ env.ADVISORY == 'true' }} + + - name: Format check HTML (djlint format) — advisory + run: uv run djlint apps/ --check + continue-on-error: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b0a9a63..7bb543a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,6 +18,12 @@ repos: - id: detect-secrets args: [--baseline, .secrets.baseline] + - repo: https://github.com/djlint/djLint + rev: v1.36.4 + hooks: + - id: djlint-jinja + args: [--lint] + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: diff --git a/apps/dashboard_web/templates/base.html b/apps/dashboard_web/templates/base.html index f2fefb6..798a133 100644 --- a/apps/dashboard_web/templates/base.html +++ b/apps/dashboard_web/templates/base.html @@ -3,7 +3,7 @@
-