Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
repos:
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.23.1
rev: 1.29.1
hooks:
- id: django-upgrade
args: [--target-version, "5.1"]

- repo: https://github.com/psf/black
rev: 25.1.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.2
rev: v0.15.0
hooks:
- id: ruff
1 change: 0 additions & 1 deletion django_async_extensions/forms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django_async_extensions.forms.models import AsyncModelForm


__all__ = ("AsyncModelForm",)
1 change: 0 additions & 1 deletion django_async_extensions/views/generic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
)
from django_async_extensions.views.generic.list import AsyncListView


__all__ = [
"AsyncView",
"AsyncTemplateView",
Expand Down
1 change: 0 additions & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
# file for each of the backends you test against.
import os


DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
Expand Down
1 change: 0 additions & 1 deletion tests/test_generic_views/test_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from .models import Artist, Author, Book, Page


client = Client()


Expand Down
10 changes: 3 additions & 7 deletions tests/test_model_forms/test_model_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,8 +1527,7 @@ def formfield_for_dbfield(db_field, **kwargs):
<option value="%d" selected>Entertainment</option>
<option value="%d" selected>It&#x27;s a test</option>
<option value="%d">Third test</option>
</select></li>"""
% (self.c1.pk, self.c2.pk, self.c3.pk),
</select></li>""" % (self.c1.pk, self.c2.pk, self.c3.pk),
)

async def test_basic_creation(self):
Expand Down Expand Up @@ -2982,8 +2981,7 @@ class Meta:
<select multiple name="colours" id="id_colours" required>
<option value="%(blue_pk)s">Blue</option>
</select></p>
"""
% {"blue_pk": colour.pk},
""" % {"blue_pk": colour.pk},
)

def test_callable_field_default(self):
Expand Down Expand Up @@ -3020,9 +3018,7 @@ class Meta:
<option value="3" selected>Novel</option></select>
<input id="initial-id_category" name="initial-category" type="hidden"
value="3">
""".format(
today_str
),
""".format(today_str),
)
empty_data = {
"title": "",
Expand Down
Loading