Skip to content

Commit f651939

Browse files
authored
chore: Upgrade Black for Python 3.14 (#140)
## Summary - Upgrade Black to a Python 3.14-compatible version. - Refresh the Poetry lockfile for Black's updated dependency set. - Apply the formatting changes produced by the upgraded formatter.
1 parent fb33242 commit f651939

19 files changed

Lines changed: 135 additions & 61 deletions

File tree

‎judoscale/core/__init__.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
previous_handler = signal.getsignal(signal.SIGTERM)
77

8+
89
def graceful_shutdown(signum, frame):
910
reporter.stop()
1011
# If there was a previous handler and it's not SIG_DFL or SIG_IGN, call it

‎poetry.lock‎

Lines changed: 100 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dramatiq = { version = ">=1.13.0,<3.0.0", extras = ["redis"], optional = true }
2828
rq = { version = ">=1.0.0,<3.0.0", optional = true }
2929

3030
[tool.poetry.group.dev.dependencies]
31-
black = "^22.12.0"
31+
black = "^26.5.1"
3232
isort = "^5.11.2"
3333
flake8 = { version = "^6.0.0", python = ">=3.10,<4.0.0" }
3434
pytest = "^8.2.2"

‎sample-apps/django_celery_sample/blog/apps.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class BlogConfig(AppConfig):
5-
default_auto_field = 'django.db.models.BigAutoField'
6-
name = 'blog'
5+
default_auto_field = "django.db.models.BigAutoField"
6+
name = "blog"

‎sample-apps/django_celery_sample/django_celery_sample/urls.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from blog.views import index, many_tasks, one_task
1718
from django.contrib import admin
1819
from django.urls import path

‎sample-apps/django_celery_sample/manage.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

‎sample-apps/django_dramatiq_sample/django_dramatiq_sample/settings.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@
8888
}
8989

9090
AUTH_PASSWORD_VALIDATORS = [
91-
{"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"},
91+
{
92+
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator"
93+
},
9294
{"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator"},
9395
{"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator"},
9496
{"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator"},

‎sample-apps/django_dramatiq_sample/manage.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python
22
"""Django's command-line utility for administrative tasks."""
3+
34
import os
45
import sys
56

‎sample-apps/django_rq_sample/blog/apps.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33

44
class BlogConfig(AppConfig):
5-
default_auto_field = 'django.db.models.BigAutoField'
6-
name = 'blog'
5+
default_auto_field = "django.db.models.BigAutoField"
6+
name = "blog"

‎sample-apps/django_rq_sample/django_rq_sample/urls.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
1. Import the include() function: from django.urls import include, path
1414
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1515
"""
16+
1617
from blog.views import index, many_tasks, one_task
1718
from django.contrib import admin
1819
from django.urls import include, path

0 commit comments

Comments
 (0)