Skip to content

Commit

Permalink
fix: Specify Python version for some deps (#116)
Browse files Browse the repository at this point in the history
* fix pyproject.toml

* reformat templates with djlint
  • Loading branch information
nchz authored Oct 8, 2024
1 parent 5570338 commit d6c8062
Show file tree
Hide file tree
Showing 7 changed files with 796 additions and 718 deletions.
16 changes: 12 additions & 4 deletions allauth_ui/templates/account/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
{% trans "Email Addresses" as heading %}
{% #container heading=heading %}
{% if emailaddresses %}
<div>{% trans 'The following email addresses are associated with your account:' %}</div>
<div>
{% trans 'The following email addresses are associated with your account:' %}
</div>
{% url 'account_email' as action_url %}
{% #form url=action_url use_default_button="false" %}
{{ redirect_field }}
Expand Down Expand Up @@ -35,9 +37,15 @@
{% endfor %}
</div>
<div class="flex flex-col mt-3 gap-1.5 ">
<button name="action_primary" type="submit" class="btn btn-primary">Make Primary</button>
<button name="action_send" type="submit" class="btn btn-secondary">Re-send verification</button>
<button name="action_remove" type="submit" class="btn btn-warning">Remove</button>
<button name="action_primary" type="submit" class="btn btn-primary">
Make Primary
</button>
<button name="action_send" type="submit" class="btn btn-secondary">
Re-send verification
</button>
<button name="action_remove" type="submit" class="btn btn-warning">
Remove
</button>
</div>
{% /form %}
{% else %}
Expand Down
4 changes: 3 additions & 1 deletion allauth_ui/templates/account/reauthenticate.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
{% load i18n %}
{% load allauth_ui %}
{% block reauthenticate_content %}
<div class="mt-5">{% blocktranslate %}Enter your password:{% endblocktranslate %}</div>
<div class="mt-5">
{% blocktranslate %}Enter your password:{% endblocktranslate %}
</div>
{% url 'account_reauthenticate' as action_url %}
{% trans "Confirm" as button_text %}
{% #form form=form url=action_url button_text=button_text %}
Expand Down
4 changes: 3 additions & 1 deletion allauth_ui/templates/mfa/authenticate.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
<div class="divider"></div>
<h2 class="my-3 text-lg">{% translate "Alternative options" %}</h2>
{% #form form=webauthn_form url=action_url use_default_button="false" %}
<button type="submit" class="btn btn-neutral">{% trans "Use a security key" %}</button>
<button type="submit" class="btn btn-neutral">
{% trans "Use a security key" %}
</button>
<a href="{% url "account_login" %}" class="btn btn-accent">{% trans "Cancel" %}</a>
{% csrf_token %}
{% /form %}
Expand Down
4 changes: 3 additions & 1 deletion allauth_ui/templates/mfa/reauthenticate.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
{% load i18n %}
{% load allauth_ui %}
{% block reauthenticate_content %}
<div class="mt-5">{% blocktranslate %}Enter an authenticator code:{% endblocktranslate %}</div>
<div class="mt-5">
{% blocktranslate %}Enter an authenticator code:{% endblocktranslate %}
</div>
{% url 'mfa_reauthenticate' as action_url %}
{% trans "Confirm" as button_text %}
{% #form form=form url=action_url button_text=button_text %}
Expand Down
4 changes: 3 additions & 1 deletion allauth_ui/templates/socialaccount/connections.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
</label>
</div>
{% endfor %}
<button type="submit" class="btn btn-warning my-3">{% trans "Remove" %}</button>
<button type="submit" class="btn btn-warning my-3">
{% trans "Remove" %}
</button>
{% /form %}
{% endif %}
<h2 class="py-3 text-lg">{% trans "Add a Third-Party Account" %}</h2>
Expand Down
1,479 changes: 770 additions & 709 deletions poetry.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ django-debug-toolbar = "^3.2.4"
django-extensions = "^3.1.5"
django-rosetta = "^0.10.0"
django-toolset = "^0.1.5"
djlint = "^1.34.1"
djlint = {version = "^1.34.1", python = ">=3.8,<4.0"}
fido2 = {version = "^1.1.3", python = ">=3.8,<4.0"}
isort = "^5.13.2"
mypy = "^1.3.0"
mypy-extensions = "1.0.0"
Expand Down

0 comments on commit d6c8062

Please sign in to comment.