Skip to content

Commit 432a4be

Browse files
Upgrade to Django==4.0.10 (#551)
* Upgrade to Django==4.0.10 * isort fix * fix pre-commit
1 parent ec0f242 commit 432a4be

File tree

11 files changed

+10858
-59
lines changed

11 files changed

+10858
-59
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,16 @@ repos:
1010
- id: check-added-large-files
1111

1212
- repo: https://github.com/pycqa/isort
13-
rev: 5.9.3
13+
rev: 5.13.2
1414
hooks:
1515
- id: isort
1616

1717
- repo: https://github.com/psf/black
18-
rev: 21.7b0
18+
rev: 25.1.0
1919
hooks:
2020
- id: black
2121

22-
- repo: https://gitlab.com/pycqa/flake8
23-
rev: 3.9.2
22+
- repo: https://github.com/pycqa/flake8
23+
rev: '7.2.0' # pick a git hash / tag to point to
2424
hooks:
25-
- id: flake8
26-
additional_dependencies: [
27-
"flake8-bugbear",
28-
"flake8-comprehensions",
29-
"flake8-mutable",
30-
"flake8-print",
31-
"flake8-simplify",
32-
]
25+
- id: flake8

cab/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
def get_form():
2-
from captcha.fields import ReCaptchaField
32
from django import forms
43
from django_comments.forms import CommentForm
4+
from django_recaptcha.fields import ReCaptchaField
55

66
class CabCommentForm(CommentForm):
77
your_name = forms.CharField(

comments_spamfighter/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from django import forms
44
from django.contrib import admin
5-
from django.utils.translation import ugettext_lazy as _
5+
from django.utils.translation import gettext_lazy as _
66

77
from .models import Keyword
88

comments_spamfighter/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.conf import settings
22
from django.db import models
3-
from django.utils.translation import ugettext_lazy as _
3+
from django.utils.translation import gettext_lazy as _
44

55

66
class Keyword(models.Model):

djangosnippets/settings/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ def user_url(user):
5353
"allauth",
5454
"allauth.account",
5555
"allauth.socialaccount",
56-
"allauth.socialaccount.providers.bitbucket",
56+
"allauth.socialaccount.providers.bitbucket_oauth2",
5757
"allauth.socialaccount.providers.github",
5858
"allauth.socialaccount.providers.twitter",
5959
"base",
6060
"cab",
6161
"comments_spamfighter",
6262
"ratings",
6363
"taggit",
64-
"captcha",
64+
"django_recaptcha",
6565
"django_extensions",
6666
"rest_framework",
6767
"django_htmx",
@@ -80,6 +80,7 @@ def user_url(user):
8080
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
8181
"ratelimitbackend.middleware.RateLimitMiddleware",
8282
"django_htmx.middleware.HtmxMiddleware",
83+
"allauth.account.middleware.AccountMiddleware",
8384
)
8485

8586
TEMPLATES = [

djangosnippets/settings/testing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"django.contrib.auth.middleware.AuthenticationMiddleware",
1010
"django.contrib.messages.middleware.MessageMiddleware",
1111
"django_htmx.middleware.HtmxMiddleware",
12+
"allauth.account.middleware.AccountMiddleware",
1213
)
1314

1415

@@ -24,7 +25,7 @@
2425
"allauth",
2526
"allauth.account",
2627
"allauth.socialaccount",
27-
"allauth.socialaccount.providers.bitbucket",
28+
"allauth.socialaccount.providers.bitbucket_oauth2",
2829
"allauth.socialaccount.providers.github",
2930
"allauth.socialaccount.providers.twitter",
3031
"base",

djangosnippets/static/css/main.css

Lines changed: 6899 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)