Skip to content

Commit 6b64aa2

Browse files
committed
style cleanup 3
1 parent 1d05e90 commit 6b64aa2

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

src/django_idom/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
__version__ = "0.0.1"
2-
31
from .websocket_consumer import IdomAsyncWebSocketConsumer
42

3+
4+
__version__ = "0.0.1"
55
__all__ = ["IdomAsyncWebSocketConsumer"]

src/django_idom/websocket_consumer.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
from typing import Any
44

55
from channels.generic.websocket import AsyncJsonWebsocketConsumer
6-
7-
from idom.core.layout import Layout
8-
from idom.core.dispatcher import dispatch_single_view
96
from idom.core.component import ComponentConstructor
7+
from idom.core.dispatcher import dispatch_single_view
8+
from idom.core.layout import Layout
109

1110

1211
class IdomAsyncWebSocketConsumer(AsyncJsonWebsocketConsumer):

tests/test_app/management/commands/build_js.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import subprocess
22
from pathlib import Path
3+
34
from django.core.management.base import BaseCommand
45

6+
57
HERE = Path(__file__).parent
68
JS_DIR = HERE.parent.parent.parent / "js"
79

tests/test_app/urls.py

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
1919
"""
2020
from django.urls import path
21+
2122
from .views import base_template
2223

24+
2325
urlpatterns = [path("", base_template)]

tests/test_app/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import idom
2-
from django.template import loader
32
from django.http import HttpResponse
3+
from django.template import loader
44

55

66
def base_template(request):

0 commit comments

Comments
 (0)