Skip to content

Commit

Permalink
two lines after imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Mar 14, 2021
1 parent 60ae5e0 commit dae287f
Show file tree
Hide file tree
Showing 45 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from idom.server.sanic import PerClientStateServer
from idom.widgets.utils import multiview


here = Path(__file__).parent

app = Sanic(__name__)
Expand Down
1 change: 1 addition & 0 deletions docs/source/_exts/async_doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from sphinx.ext.doctest import DocTestBuilder
from sphinx.ext.doctest import setup as doctest_setup


test_template = """
import asyncio as __asyncio
Expand Down
1 change: 1 addition & 0 deletions docs/source/_exts/interactive_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from docutils.parsers.rst import Directive
from sphinx.application import Sphinx


_IDOM_SERVER_LOC = os.environ.get("IDOM_DOC_EXAMPLE_SERVER_HOST", "")


Expand Down
1 change: 1 addition & 0 deletions docs/source/_exts/widget_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from sphinx.util.docutils import SphinxDirective
from sphinx_panels.tabs import TabbedDirective


here = Path(__file__).parent
examples = here.parent / "examples"

Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys
from pathlib import Path


# -- Path Setup --------------------------------------------------------------

here = Path(__file__).parent
Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/material_ui_button_no_action.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import idom


material_ui = idom.install("@material-ui/core", fallback="loading...")

idom.run(
Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/material_ui_button_on_click.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import idom


material_ui = idom.install("@material-ui/core", fallback="loading...")


Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/material_ui_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import idom


material_ui = idom.install("@material-ui/core", fallback="loading...")


Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/simple_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import idom
from idom.widgets.html import Input


victory = idom.install("victory", fallback="loading...")


Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/super_simple_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import idom


path_to_source_file = Path(__file__).parent / "super_simple_chart.js"
ssc = idom.Module("super-simple-chart", source_file=path_to_source_file)

Expand Down
1 change: 1 addition & 0 deletions docs/source/examples/victory_chart.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import idom


victory = idom.install("victory", fallback="loading...")

idom.run(
Expand Down
1 change: 1 addition & 0 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import nox
from nox.sessions import Session


posargs_pattern = re.compile(r"^(\w+)\[(.+)\]$")


Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ use_parentheses = "True"
ensure_newline_before_comments = "True"
include_trailing_comma = "True"
line_length = 88
lines_after_imports = 2
1 change: 1 addition & 0 deletions scripts/live_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from idom.server.sanic import PerClientStateServer


os.environ["IDOM_DOC_EXAMPLE_SERVER_HOST"] = "127.0.0.1:5555"
_running_idom_servers = []

Expand Down
1 change: 1 addition & 0 deletions scripts/one_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import idom


here = Path(__file__).parent
examples_dir = here.parent / "docs" / "source" / "examples"
sys.path.insert(0, str(examples_dir))
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from setuptools import find_packages, setup
from setuptools.command.develop import develop


if sys.platform == "win32":
from subprocess import list2cmdline
else:
Expand Down
2 changes: 2 additions & 0 deletions src/idom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from pkg_resources import DistributionNotFound as _DistributionNotFound
from pkg_resources import get_distribution as _get_distribution


try:
__version__: str = _get_distribution(__name__).version
except _DistributionNotFound: # pragma: no cover
Expand All @@ -19,6 +20,7 @@
from .widgets.html import html
from .widgets.utils import hotswap, multiview


# try to automatically setup the dialect's import hook
try:
import htm
Expand Down
1 change: 1 addition & 0 deletions src/idom/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from .cli import main


if __name__ == "__main__":
main()
1 change: 1 addition & 0 deletions src/idom/_option.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
from typing import Any, Callable, Generic, TypeVar, cast


_O = TypeVar("_O")


Expand Down
1 change: 1 addition & 0 deletions src/idom/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import idom
from idom.client import manage as manage_client


main = typer.Typer()
show = typer.Typer()
main.add_typer(show, name="show", short_help="Display information about IDOM")
Expand Down
1 change: 1 addition & 0 deletions src/idom/client/_private.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

from idom.config import IDOM_CLIENT_BUILD_DIR


HERE = Path(__file__).parent


Expand Down
1 change: 1 addition & 0 deletions src/idom/client/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

from . import _private


logger = getLogger(__name__)


Expand Down
1 change: 1 addition & 0 deletions src/idom/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from . import _option


IDOM_DEBUG_MODE = _option.Option(
"IDOM_DEBUG_MODE",
default=False,
Expand Down
1 change: 1 addition & 0 deletions src/idom/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from .layout import Layout
from .vdom import vdom


__all__ = [
"AbstractComponent",
"Layout",
Expand Down
1 change: 1 addition & 0 deletions src/idom/core/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from functools import wraps
from typing import TYPE_CHECKING, Any, Callable, Dict, Tuple, Union


if TYPE_CHECKING: # pragma: no cover
from .vdom import VdomDict # noqa

Expand Down
1 change: 1 addition & 0 deletions src/idom/core/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .layout import Layout, LayoutEvent, LayoutUpdate
from .utils import HasAsyncResources, async_resource


logger = getLogger(__name__)

SendCoroutine = Callable[[Any], Awaitable[None]]
Expand Down
1 change: 1 addition & 0 deletions src/idom/core/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from anyio import create_task_group
from mypy_extensions import TypedDict


EventsMapping = Union[Dict[str, Union["Callable[..., Any]", "EventHandler"]], "Events"]


Expand Down
1 change: 1 addition & 0 deletions src/idom/core/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

from .component import AbstractComponent


__all__ = [
"use_state",
"use_effect",
Expand Down
1 change: 1 addition & 0 deletions src/idom/core/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
from .utils import CannotAccessResource, HasAsyncResources, async_resource
from .vdom import validate_serialized_vdom


logger = getLogger(__name__)


Expand Down
1 change: 1 addition & 0 deletions src/idom/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
overload,
)


if sys.version_info >= (3, 7): # pragma: no cover
from contextlib import AsyncExitStack, asynccontextmanager # noqa
else: # pragma: no cover
Expand Down
1 change: 1 addition & 0 deletions src/idom/core/vdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .component import AbstractComponent
from .events import EventsMapping


SERIALIZED_VDOM_JSON_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema",
"$ref": "#/definitions/element",
Expand Down
1 change: 1 addition & 0 deletions src/idom/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from .config import IDOM_DEBUG_MODE


root_logger = logging.getLogger("idom")


Expand Down
1 change: 1 addition & 0 deletions src/idom/server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .base import AbstractRenderServer
from .prefab import hotswap_server, multiview_server, run


__all__ = [
"default",
"run",
Expand Down
1 change: 1 addition & 0 deletions src/idom/server/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from idom.core.component import ComponentConstructor


_App = TypeVar("_App", bound=Any)
_Config = TypeVar("_Config", bound=Any)
_Self = TypeVar("_Self", bound="AbstractRenderServer[Any, Any]")
Expand Down
1 change: 1 addition & 0 deletions src/idom/server/prefab.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .base import AbstractRenderServer
from .utils import find_available_port, find_builtin_server_type


logger = logging.getLogger(__name__)
_S = TypeVar("_S", bound=AbstractRenderServer[Any, Any])

Expand Down
1 change: 1 addition & 0 deletions src/idom/server/tornado.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from .base import AbstractRenderServer


_RouteHandlerSpecs = List[Tuple[str, Type[RequestHandler], Any]]


Expand Down
1 change: 1 addition & 0 deletions src/idom/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from idom.server.prefab import hotswap_server
from idom.server.utils import find_available_port, find_builtin_server_type


__all__ = [
"find_available_port",
"create_simple_selenium_web_driver",
Expand Down
1 change: 1 addition & 0 deletions src/idom/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from html.parser import HTMLParser as _HTMLParser
from typing import Any, Callable, Dict, Generic, List, Optional, Tuple, TypeVar


_RefValue = TypeVar("_RefValue")


Expand Down
1 change: 1 addition & 0 deletions src/idom/widgets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from .html import Input, html, image
from .utils import hotswap, multiview


__all__ = [
"node",
"hotswap",
Expand Down
1 change: 1 addition & 0 deletions src/idom/widgets/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from idom.core.component import ComponentConstructor, component
from idom.utils import Ref


MountFunc = Callable[[ComponentConstructor], None]


Expand Down
1 change: 1 addition & 0 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from idom.cli import main
from idom.client.manage import web_module_exists


cli_runner = CliRunner()


Expand Down
1 change: 1 addition & 0 deletions tests/test_client/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from idom import Module
from tests.general_utils import patch_slots_object


HERE = Path(__file__).parent


Expand Down
1 change: 1 addition & 0 deletions tests/test_core/test_vdom.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import idom
from idom.core.vdom import component, make_vdom_constructor, validate_serialized_vdom


fake_events = idom.Events()


Expand Down
1 change: 1 addition & 0 deletions tests/test_widgets/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import idom
from tests.driver_utils import send_keys


_image_src_bytes = b"""
<svg width="400" height="110" xmlns="http://www.w3.org/2000/svg">
<rect width="300" height="100" style="fill:rgb(0,0,255);" />
Expand Down
1 change: 1 addition & 0 deletions tests/test_widgets/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import idom


HERE = Path(__file__).parent


Expand Down

0 comments on commit dae287f

Please sign in to comment.