Skip to content

Commit c0bde3c

Browse files
committed
[deps] Updated QA dependencies
1 parent 7c5169e commit c0bde3c

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

docs/developer/admin-utilities.rst

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ object. Following is an example:
8989
'"Number of IPs" will not be possible.'
9090
),
9191
# (optional) You can provide a link to documentation for user reference
92-
"documentation_url": (
93-
"https://github.com/openwisp/openwisp-utils"
94-
),
92+
"documentation_url": ("https://github.com/openwisp/openwisp-utils"),
9593
# (optional) Icon to be shown along with help text. By default it uses
9694
# "/static/admin/img/icon-alert.svg"
9795
"image_url": "/static/admin/img/icon-alert.svg",
@@ -244,9 +242,7 @@ and raw HTML to the submit row in the ``change_view`` method:
244242
245243
@admin.register(MyModel)
246244
class MyModelAdmin(admin.ModelAdmin):
247-
def change_view(
248-
self, request, object_id, form_url="", extra_context=None
249-
):
245+
def change_view(self, request, object_id, form_url="", extra_context=None):
250246
extra_context = extra_context or {}
251247
extra_context["additional_buttons"] = [
252248
{
@@ -264,9 +260,7 @@ and raw HTML to the submit row in the ``change_view`` method:
264260
)
265261
},
266262
]
267-
return super().change_view(
268-
request, object_id, form_url, extra_context
269-
)
263+
return super().change_view(request, object_id, form_url, extra_context)
270264
271265
In this example, two buttons are added to the submit row:
272266

docs/developer/other-utilities.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ Here's how to easily do it:
7373
verbose_name = _("My OpenWISP Module")
7474
7575
# assumes API is enabled by default
76-
API_ENABLED = getattr(
77-
settings, "MY_OPENWISP_MODULE_API_ENABLED", True
78-
)
76+
API_ENABLED = getattr(settings, "MY_OPENWISP_MODULE_API_ENABLED", True)
7977
# set throttling rates for your module here
8078
REST_FRAMEWORK_SETTINGS = {
8179
"DEFAULT_THROTTLE_RATES": {"my_module": "400/hour"},

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@
3434
],
3535
extras_require={
3636
"qa": [
37-
"black~=23.12.1",
38-
"flake8~=7.1.0",
39-
"isort~=5.13.2",
37+
"black~=24.10.0",
38+
"flake8~=7.2.0",
39+
"isort~=6.0.1",
4040
"coverage>=7.6.1,<7.9.0",
41-
"tblib~=3.0.0",
42-
"docstrfmt~=1.8.0",
41+
"tblib~=3.1.0",
42+
"docstrfmt~=1.10.0",
4343
],
4444
"rest": [
4545
"djangorestframework>=3.14,<3.15.2",

0 commit comments

Comments
 (0)