This commit is contained in:
Suhaib Mujahid 2023-04-28 19:13:47 -04:00 коммит произвёл Suhaib Mujahid
Родитель a6157529c5
Коммит ff79d1a2c5
8 изменённых файлов: 18 добавлений и 11 удалений

Просмотреть файл

@ -7,6 +7,12 @@ repos:
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.25.0
hooks:
- id: djlint-jinja
files: "\\.html"
types_or: ['html']
- repo: https://github.com/pycqa/flake8
rev: 5.0.4
hooks:

5
pyproject.toml Normal file
Просмотреть файл

@ -0,0 +1,5 @@
[tool.djlint]
profile="jinja"
linter_output_format = "{filename}:{line}: {code} {message} {match}"
# Ignore linting rules that are related to web pages
ignore = "H016,H021,H030,H031"

Просмотреть файл

@ -17,7 +17,7 @@
<td>
<ul style="padding: 0; margin: 0">
{% for field, value, _ in copied_fields -%}
<li>{{ field }}: {{value}}</li>
<li>{{ field }}: {{ value }}</li>
{% endfor -%}
</ul>
</td>

Просмотреть файл

@ -1,4 +1,4 @@
<p>Commits referencing the following security bugs have landed, and the bugs have the leave-open keyword, please double check them:
<p>Commits referencing the following security bugs have landed, and the bugs have the leave-open keyword, please double check them:</p>
<table {{ table_attrs }}>
<thead>
<tr>
@ -15,4 +15,3 @@
{% endfor -%}
</tbody>
</table>
<p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following bugs haven't been updated with a commit referencing them:
<p>The following bugs haven't been updated with a commit referencing them:</p>
<table {{ table_attrs }}>
<thead>
<tr>
@ -13,11 +13,10 @@
</td>
<td>
{% for cset in csets %}
<a href="{{ cset[1] | e }}">{{ cset[0]}}</a>
<a href="{{ cset[1] | e }}">{{ cset[0] }}</a>
{% endfor %}
</td>
</tr>
{% endfor -%}
</tbody>
</table>
<p>

Просмотреть файл

@ -1,4 +1,4 @@
<p>The following {{ plural('bug has', data, pword='bugs have') }} a needinfo, {{ plural('is', data, pword='are') }} marked as affecting a released version, and {{ plural('has', data, pword='have') }} no activity for the last {{ extra['nweeks'] }} {{ plural('week', extra['nweeks']) }}:
<p>The following {{ plural('bug has', data, pword='bugs have') }} a needinfo, {{ plural('is', data, pword='are') }} marked as affecting a released version, and {{ plural('has', data, pword='have') }} no activity for the last {{ extra['nweeks'] }} {{ plural('week', extra['nweeks']) }}:</p>
<table {{ table_attrs }}>
<thead>
<tr>
@ -15,7 +15,7 @@
{{ summary | e }}
</td>
<td>
<a href="mailto:{{ to | e }}">{{ to | e }}</a> from {{ from | e }}</a>
<a href="mailto:{{ to }}">{{ to }}</a> from <a href="mailto:{{ from }}">{{ from }}</a>
</td>
<td>
{{ last_comment }}
@ -24,4 +24,3 @@
{% endfor -%}
</tbody>
</table>
</p>

Просмотреть файл

@ -9,7 +9,7 @@
<th>Status in beta</th>
<th>Status in release</th>
{% for esr in extra %}
<th>Status in {{esr}}</th>
<th>Status in {{ esr }}</th>
{% endfor %}
</tr>
</thead>

Просмотреть файл

@ -28,4 +28,3 @@
{% endfor -%}
</tbody>
</table>
</p>