File tree Expand file tree Collapse file tree 11 files changed +10858
-59
lines changed Expand file tree Collapse file tree 11 files changed +10858
-59
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11def 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 (
Original file line number Diff line number Diff line change 22
33from django import forms
44from django .contrib import admin
5- from django .utils .translation import ugettext_lazy as _
5+ from django .utils .translation import gettext_lazy as _
66
77from .models import Keyword
88
Original file line number Diff line number Diff line change 11from django .conf import settings
22from django .db import models
3- from django .utils .translation import ugettext_lazy as _
3+ from django .utils .translation import gettext_lazy as _
44
55
66class Keyword (models .Model ):
Original file line number Diff line number Diff 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
8586TEMPLATES = [
Original file line number Diff line number Diff line change 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
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" ,
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments