mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Configured and applied isort, refs #516
This commit is contained in:
parent
17ec309e14
commit
59a5d336bd
78 changed files with 435 additions and 352 deletions
|
|
@ -1,13 +1,14 @@
|
|||
import asyncio
|
||||
from datasette import hookimpl, Permission
|
||||
from datasette.facets import Facet
|
||||
from datasette import tracer
|
||||
from datasette.utils import path_with_added_args
|
||||
from datasette.utils.asgi import asgi_send_json, Response
|
||||
import base64
|
||||
import pint
|
||||
import json
|
||||
|
||||
import pint
|
||||
|
||||
from datasette import Permission, hookimpl, tracer
|
||||
from datasette.facets import Facet
|
||||
from datasette.utils import path_with_added_args
|
||||
from datasette.utils.asgi import Response, asgi_send_json
|
||||
|
||||
ureg = pint.UnitRegistry()
|
||||
|
||||
|
||||
|
|
@ -326,11 +327,7 @@ def startup(datasette):
|
|||
datasette._startup_hook_fired = True
|
||||
|
||||
# And test some import shortcuts too
|
||||
from datasette import Response
|
||||
from datasette import Forbidden
|
||||
from datasette import NotFound
|
||||
from datasette import hookimpl
|
||||
from datasette import actor_matches_allow
|
||||
from datasette import Forbidden, NotFound, Response, actor_matches_allow, hookimpl
|
||||
|
||||
_ = (Response, Forbidden, NotFound, hookimpl, actor_matches_allow)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,10 @@
|
|||
import json
|
||||
from functools import wraps
|
||||
|
||||
import markupsafe
|
||||
|
||||
from datasette import hookimpl
|
||||
from datasette.utils.asgi import Response
|
||||
from functools import wraps
|
||||
import markupsafe
|
||||
import json
|
||||
|
||||
|
||||
@hookimpl
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import json
|
||||
|
||||
from datasette import hookimpl
|
||||
from datasette.utils.asgi import Response
|
||||
import json
|
||||
|
||||
|
||||
async def can_render(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from datasette import hookimpl
|
||||
import time
|
||||
|
||||
from datasette import hookimpl
|
||||
|
||||
|
||||
@hookimpl
|
||||
def prepare_connection(conn):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue