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
4 changes: 2 additions & 2 deletions embed_video/tests/backends/tests_soundcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ def get_info(self):
"width": 123,
"height": 321,
"thumbnail_url": "xyz",
"html": '\u003Ciframe width="100%" height="400" '
"html": '\u003ciframe width="100%" height="400" '
'scrolling="no" frameborder="no" '
'src="{0}"\u003E\u003C/iframe\u003E'.format(self.url),
'src="{0}"\u003e\u003c/iframe\u003e'.format(self.url),
}

self.foo = FooBackend("abcd")
Expand Down
6 changes: 2 additions & 4 deletions embed_video/tests/templatetags/tests_embed_video_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,10 @@ def test_user_size(self):
)

def test_wrong_size(self):
template = Template(
"""
template = Template("""
{% load embed_video_tags %}
{% video 'http://www.youtube.com/watch?v=jsrRJyHBvzw' 'so x huge' %}
"""
)
""")
request = RequestContext(HttpRequest())
self.assertRaises(TemplateSyntaxError, template.render, request)

Expand Down
2 changes: 1 addition & 1 deletion example_project/example_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]

DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

APPEND_SLASH = True

Expand Down
3 changes: 1 addition & 2 deletions example_project/example_project/urls.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from django.contrib import admin
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.urls import include, path

from django.contrib import admin

admin.autodiscover()

urlpatterns = staticfiles_urlpatterns() + [
Expand Down
1 change: 1 addition & 0 deletions example_project/example_project/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
framework.

"""

import os

# We defer to a DJANGO_SETTINGS_MODULE already in the environment. This breaks
Expand Down
2 changes: 1 addition & 1 deletion example_project/posts/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.urls import include, re_path

from .views import PostListView, PostDetailView
from .views import PostDetailView, PostListView

urlpatterns = [
re_path(r"(?P<pk>\d+)/$", PostDetailView.as_view(), name="detail"),
Expand Down
2 changes: 1 addition & 1 deletion example_project/posts/views.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.views.generic import ListView, DetailView
from django.views.generic import DetailView, ListView

from .models import Post

Expand Down
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ ignore_errors =
ignore_errors = true
basepython = 3.11
deps =
black==22.6.0
isort==5.6.4
black~=26.1
isort~=7.0
skip_install = true
commands =
isort --profile black --check-only --diff embed_video setup.py
black -t py38 --check --diff embed_video
black --check --diff embed_video
isort --profile black --check-only --diff --extend-skip-glob='**/migrations' example_project
black --check --diff --extend-exclude '/migrations' example_project
Loading