Add djlint pre-commit hook
This commit is contained in:
parent
d0cfc2d729
commit
044a7f1c06
13 changed files with 40 additions and 47 deletions
|
@ -8,3 +8,8 @@ repos:
|
||||||
rev: 23.3.0
|
rev: 23.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
- repo: https://github.com/Riverside-Healthcare/djLint
|
||||||
|
rev: v1.23.1
|
||||||
|
hooks:
|
||||||
|
- id: djlint-django
|
||||||
|
args: ["--reformat"]
|
||||||
|
|
|
@ -36,9 +36,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'index' %}"
|
<a href="{% url 'index' %}"
|
||||||
class="home{% if request.resolver_match.url_name == 'index' %} cur{% endif %}"
|
class="home{% if request.resolver_match.url_name == 'index' %} cur{% endif %}"
|
||||||
accesskey="h">
|
accesskey="h">{% translate "Home" %}</a>
|
||||||
{% translate "Home" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'snapshots' %}"
|
<a href="{% url 'snapshots' %}"
|
||||||
|
@ -55,37 +53,27 @@
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'account' %}"
|
<a href="{% url 'account' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'account' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'account' %}cur{% endif %}"
|
||||||
accesskey="a">
|
accesskey="a">{% translate "New account" %}</a>
|
||||||
{% translate "New account" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'snapshot' %}"
|
<a href="{% url 'snapshot' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'snapshot' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'snapshot' %}cur{% endif %}"
|
||||||
accesskey="s">
|
accesskey="s">{% translate "New snapshot" %}</a>
|
||||||
{% translate "New snapshot" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'category' %}"
|
<a href="{% url 'category' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'category' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'category' %}cur{% endif %}"
|
||||||
accesskey="c">
|
accesskey="c">{% translate "New category" %}</a>
|
||||||
{% translate "New category" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'transaction' %}"
|
<a href="{% url 'transaction' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'transaction' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'transaction' %}cur{% endif %}"
|
||||||
accesskey="t">
|
accesskey="t">{% translate "New transaction" %}</a>
|
||||||
{% translate "New transaction" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'search' %}"
|
<a href="{% url 'search' %}"
|
||||||
class="{% if request.resolver_match.url_name == 'search' %}cur{% endif %}"
|
class="{% if request.resolver_match.url_name == 'search' %}cur{% endif %}"
|
||||||
accesskey="r">
|
accesskey="r">{% translate "Search" %}</a>
|
||||||
{% translate "Search" %}
|
|
||||||
</a>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="{% url 'logout' %}" accesskey="l">{% translate "Log out" %}</a>
|
<a href="{% url 'logout' %}" accesskey="l">{% translate "Log out" %}</a>
|
||||||
|
|
Loading…
Reference in a new issue