Skip to content
Merged
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
17 changes: 5 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,16 @@ repos:
- id: check-added-large-files

- repo: https://github.com/pycqa/isort
rev: 5.9.3
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/psf/black
rev: 21.7b0
rev: 25.1.0
hooks:
- id: black

- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
- repo: https://github.com/pycqa/flake8
rev: '7.2.0' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies: [
"flake8-bugbear",
"flake8-comprehensions",
"flake8-mutable",
"flake8-print",
"flake8-simplify",
]
- id: flake8
2 changes: 1 addition & 1 deletion cab/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def get_form():
from captcha.fields import ReCaptchaField
from django import forms
from django_comments.forms import CommentForm
from django_recaptcha.fields import ReCaptchaField

class CabCommentForm(CommentForm):
your_name = forms.CharField(
Expand Down
2 changes: 1 addition & 1 deletion comments_spamfighter/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from django import forms
from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _

from .models import Keyword

Expand Down
2 changes: 1 addition & 1 deletion comments_spamfighter/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _


class Keyword(models.Model):
Expand Down
5 changes: 3 additions & 2 deletions djangosnippets/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ def user_url(user):
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.bitbucket",
"allauth.socialaccount.providers.bitbucket_oauth2",
"allauth.socialaccount.providers.github",
"allauth.socialaccount.providers.twitter",
"base",
"cab",
"comments_spamfighter",
"ratings",
"taggit",
"captcha",
"django_recaptcha",
"django_extensions",
"rest_framework",
"django_htmx",
Expand All @@ -80,6 +80,7 @@ def user_url(user):
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
"ratelimitbackend.middleware.RateLimitMiddleware",
"django_htmx.middleware.HtmxMiddleware",
"allauth.account.middleware.AccountMiddleware",
)

TEMPLATES = [
Expand Down
3 changes: 2 additions & 1 deletion djangosnippets/settings/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django_htmx.middleware.HtmxMiddleware",
"allauth.account.middleware.AccountMiddleware",
)


Expand All @@ -24,7 +25,7 @@
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.bitbucket",
"allauth.socialaccount.providers.bitbucket_oauth2",
"allauth.socialaccount.providers.github",
"allauth.socialaccount.providers.twitter",
"base",
Expand Down
6,900 changes: 6,899 additions & 1 deletion djangosnippets/static/css/main.css
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this file intentionally added? @chriswedgwood

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No may have been a mistake

Also this pr has broken login, something going on with Django all auth. I'm going to look into it tonight

Large diffs are not rendered by default.

Loading