Skip to content

Commit 353eacd

Browse files
committed
run auto formatter on docs examples
1 parent 99ca260 commit 353eacd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+82
-59
lines changed

docs/examples/python/configure-asgi-middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Broken load order, only used for linting
22
from channels.routing import ProtocolTypeRouter, URLRouter
3+
34
from reactpy_django import REACTPY_WEBSOCKET_ROUTE
45

56
django_asgi_app = ""

docs/examples/python/configure-asgi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111

1212
from channels.routing import ProtocolTypeRouter, URLRouter # noqa: E402
13+
1314
from reactpy_django import REACTPY_WEBSOCKET_ROUTE # noqa: E402
1415

1516
application = ProtocolTypeRouter(

docs/examples/python/django-css.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from reactpy import component, html
2+
23
from reactpy_django.components import django_css
34

45

docs/examples/python/django-js.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from reactpy import component, html
2+
23
from reactpy_django.components import django_js
34

45

docs/examples/python/django-query-postprocessor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from example.models import TodoItem
21
from reactpy import component
2+
3+
from example.models import TodoItem
34
from reactpy_django.hooks import use_query
45
from reactpy_django.utils import django_query_postprocessor
56

docs/examples/python/django-router.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from reactpy import component, html
2-
from reactpy_django.router import django_router
32
from reactpy_router import route
43

4+
from reactpy_django.router import django_router
5+
56

67
@component
78
def my_component():
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def child_component(): ...

docs/examples/python/example/urls.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from django.urls import path
2+
23
from example import views
34

45
urlpatterns = [

docs/examples/python/example/views.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from django.shortcuts import render
1+
from python.hello_world_cbv import HelloWorld
2+
from python.hello_world_fbv import hello_world
23

3-
4-
def index(request):
5-
return render(request, "my_template.html")
4+
__all__ = ["HelloWorld", "hello_world"]

docs/examples/python/first_view.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.shortcuts import render
2+
3+
4+
def index(request):
5+
return render(request, "my_template.html")

0 commit comments

Comments
 (0)