🚨 — Improve djlint test and fix its warnings/errors

This commit is contained in:
Luc Didry 2023-12-12 07:30:16 +01:00
parent 024fd4c911
commit 76bd10108d
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
8 changed files with 20 additions and 20 deletions

View file

@ -21,7 +21,7 @@ cog: ## Run cog, to integrate the CLI options to the docs.
tests: venv ## Run the tests
venv/bin/pytest
djlint: venv ## Format the templates
venv/bin/djlint --ignore=H030,H031,H006 --lint argos/server/templates/*html
venv/bin/djlint --ignore=H030,H031,H006 --profile jinja --lint argos/server/templates/*html
pylint: venv ## Runs pylint on the code
venv/bin/pylint argos
lint: djlint pylint

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}<h2>Agents</h2>{% endblock %}
{% block title %}<h2>Agents</h2>{% endblock title %}
{% block content %}
<table role="grid">
<thead>
@ -17,4 +17,4 @@
{% endfor %}
</tbody>
</table>
{% endblock %}
{% endblock content %}

View file

@ -52,11 +52,11 @@
<main class="container">
<div id="header">
{% block title %}
{% endblock %}
{% endblock title %}
</div>
<div id="content">
{% block content %}
{% endblock %}
{% endblock content %}
</div>
</main>
<footer class="text-center">

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}<h2>{{ domain }}</h2>{% endblock %}
{% block title %}<h2>{{ domain }}</h2>{% endblock title %}
{% block content %}
<div id="domains" class="frame">
<table id="domains-list" role="grid">
@ -43,4 +43,4 @@
</tbody>
</table>
</div>
{% endblock %}
{% endblock content %}

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}<h2>Tasks list</h2>{% endblock %}
{% block title %}<h2>Tasks list</h2>{% endblock title %}
{% block content %}
<div id="domains" class="frame">
<nav>
@ -76,4 +76,4 @@
}
});
</script>
{% endblock %}
{% endblock content %}

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}<h2>Dashboard</h2>{% endblock %}
{% block title %}<h2>Dashboard</h2>{% endblock title %}
{% block content %}
<div id="domains" class="frame">
<<<<<<< HEAD
@ -69,4 +69,4 @@
</p>
</div>
</div>
{% endblock %}
{% endblock content %}

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}<h2>{{ result }}</h2>{% endblock %}
{% block title %}<h2>{{ result }}</h2>{% endblock title %}
{% block content %}
<dl>
<dt>Task</dt>
@ -13,4 +13,4 @@
<dt>Context</dt>
<dd>{{ result.context }}</dd>
</dl>
{% endblock %}
{% endblock content %}

View file

@ -1,5 +1,5 @@
{% extends "base.html" %}
{% block title %}<h2>{{ task }}</h2>{% endblock %}
{% block title %}<h2>{{ task }}</h2>{% endblock title %}
{% block content %}
<code>{{ description }}</code>
<table role="grid">
@ -23,4 +23,4 @@
</tbody>
</table>
{% endblock %}
{% endblock content %}