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
2 changes: 0 additions & 2 deletions src/labthings/json/encoder.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from flask import make_response, current_app

# Flask JSON encoder so we get UUID, datetime etc support
from flask.json import JSONEncoder
from base64 import b64encode
Expand Down
2 changes: 0 additions & 2 deletions src/labthings/json/marshmallow_jsonschema/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

from marshmallow import fields, missing, Schema, validate
from marshmallow.class_registry import get_class
from marshmallow.decorators import post_dump
from marshmallow import RAISE, INCLUDE, EXCLUDE

from .exceptions import UnsupportedValueError
from .validation import handle_length, handle_one_of, handle_range, handle_regexp
Expand Down
11 changes: 11 additions & 0 deletions src/labthings/server/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,14 @@
pre_load,
pre_dump,
)

__all__ = [
"Schema",
"FieldSchema",
"TaskSchema",
"ExtensionSchema",
"ActionSchema",
"build_action_schema",
"pre_load",
"pre_dump",
]
2 changes: 0 additions & 2 deletions src/labthings/sync/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import gevent
import time
import logging

from gevent.monkey import get_original
from gevent.lock import BoundedSemaphore

from gevent.event import Event
Expand Down
2 changes: 1 addition & 1 deletion src/labthings/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from zeroconf import IPVersion, ServiceInfo, Zeroconf, get_all_addresses

from geventwebsocket.handler import WebSocketHandler as _WebSocketHandler
from logging import getLogger, StreamHandler, getLoggerClass, Formatter, DEBUG
from logging import getLogger

from .find import current_labthing

Expand Down
1 change: 0 additions & 1 deletion tests/test_td.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import pytest

from labthings import fields
from labthings import td

from labthings.view import View

Expand Down