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
|
||||
hooks:
|
||||
- id: black
|
||||
- repo: https://github.com/Riverside-Healthcare/djLint
|
||||
rev: v1.23.1
|
||||
hooks:
|
||||
- id: djlint-django
|
||||
args: ["--reformat"]
|
||||
|
|
|
@ -36,9 +36,7 @@
|
|||
<li>
|
||||
<a href="{% url 'index' %}"
|
||||
class="home{% if request.resolver_match.url_name == 'index' %} cur{% endif %}"
|
||||
accesskey="h">
|
||||
{% translate "Home" %}
|
||||
</a>
|
||||
accesskey="h">{% translate "Home" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'snapshots' %}"
|
||||
|
@ -55,37 +53,27 @@
|
|||
<li>
|
||||
<a href="{% url 'account' %}"
|
||||
class="{% if request.resolver_match.url_name == 'account' %}cur{% endif %}"
|
||||
accesskey="a">
|
||||
{% translate "New account" %}
|
||||
</a>
|
||||
accesskey="a">{% translate "New account" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'snapshot' %}"
|
||||
class="{% if request.resolver_match.url_name == 'snapshot' %}cur{% endif %}"
|
||||
accesskey="s">
|
||||
{% translate "New snapshot" %}
|
||||
</a>
|
||||
accesskey="s">{% translate "New snapshot" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'category' %}"
|
||||
class="{% if request.resolver_match.url_name == 'category' %}cur{% endif %}"
|
||||
accesskey="c">
|
||||
{% translate "New category" %}
|
||||
</a>
|
||||
accesskey="c">{% translate "New category" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'transaction' %}"
|
||||
class="{% if request.resolver_match.url_name == 'transaction' %}cur{% endif %}"
|
||||
accesskey="t">
|
||||
{% translate "New transaction" %}
|
||||
</a>
|
||||
accesskey="t">{% translate "New transaction" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'search' %}"
|
||||
class="{% if request.resolver_match.url_name == 'search' %}cur{% endif %}"
|
||||
accesskey="r">
|
||||
{% translate "Search" %}
|
||||
</a>
|
||||
accesskey="r">{% translate "Search" %}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{% url 'logout' %}" accesskey="l">{% translate "Log out" %}</a>
|
||||
|
|
Loading…
Reference in a new issue