Skip to content

Commit

Permalink
Add Djade to pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchainz committed Sep 26, 2024
1 parent d37ba1b commit 41632d4
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,7 @@ repos:
additional_dependencies:
- django-stubs==5.0.4
- types-python-dateutil
- repo: https://github.com/adamchainz/djade-pre-commit
rev: 1.0.0
hooks:
- id: djade
3 changes: 1 addition & 2 deletions example/example/templates/_base.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load django_htmx %}
{% load static %}
{% load django_htmx static %}

<!doctype html>
<html lang="en">
Expand Down
2 changes: 1 addition & 1 deletion example/example/templates/csrf-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
<section>
<p id="result"><em>Awaiting interaction...</em></p>
</section>
{% endblock %}
{% endblock main %}
2 changes: 1 addition & 1 deletion example/example/templates/error-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@
Fetch non-existent page
</button>
</section>
{% endblock %}
{% endblock main %}
2 changes: 1 addition & 1 deletion example/example/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
Welcome to the example app.
Use one of the links in the navigation to explore!
</section>
{% endblock %}
{% endblock main %}
2 changes: 1 addition & 1 deletion example/example/templates/middleware-tester.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@
<section>
<p id="attribute-test"><em>Awaiting interaction...</em></p>
</section>
{% endblock %}
{% endblock main %}
2 changes: 1 addition & 1 deletion example/example/templates/partial-rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@
</ul>
</nav>
</section>
{% endblock %}
{% endblock main %}

0 comments on commit 41632d4

Please sign in to comment.