Skip to content

Commit

Permalink
chore: black
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jun 21, 2023
1 parent 1b1ad3c commit e03ceff
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion solara/components/component_vue.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def component_vue(vue_path: str, vuetify=True) -> Callable[[Callable[P, None]],
"""

def decorator(func: Callable[P, None]):

VueWidgetSolaraSub = _widget_vue(vue_path, vuetify=vuetify)(func)

def wrapper(*args, **kwargs):
Expand Down
1 change: 0 additions & 1 deletion solara/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,6 @@ def _run_app(
pathname: str,
render_context: reacton.core._RenderContext = None,
):

# app.signal_hook_install()
main_object = app_script.run()
app_state = pickle.loads(app_state) if app_state is not None else None
Expand Down
1 change: 0 additions & 1 deletion solara/server/cdn_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def get_data(base_cache_dir: pathlib.Path, path):


def get_path(base_cache_dir: pathlib.Path, path) -> pathlib.Path:

parts = path.replace("\\", "/").split("/")
store_path = path if len(parts) != 1 else pathlib.Path(path) / "__main.js"
cache_path = base_cache_dir / store_path
Expand Down
1 change: 1 addition & 0 deletions solara/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
else:
prefix = sys.prefix


class ThemeVariant(str, Enum):
light = "light"
dark = "dark"
Expand Down
1 change: 0 additions & 1 deletion solara/server/starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ def signal_stop(self):
self.server.lifespan.should_exit = True

def serve(self):

from uvicorn.config import Config
from uvicorn.server import Server

Expand Down
1 change: 0 additions & 1 deletion solara/website/pages/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def Page():
):
rv.CardTitle(children=[route.label])
with rv.CardText():

with solara.Link(path):
if not image_path.exists():
pass
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/autorouting_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ def test_routes_portal():


def test_routes_examples_api_button():

routes = solara.autorouting.generate_routes(solara.website.pages.api.button)

assert len(routes) == 1
Expand All @@ -103,7 +102,6 @@ def test_routes_examples_api_button():


def test_routes_examples_docs():

routes = solara.autorouting.generate_routes(solara.website.pages.docs)

assert len(routes) == 15
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/lab/toestand_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ def App():


def test_simplest():

settings = State({"bears": 2, "theme": "dark"})
unsub = settings.subscribe(print) # noqa

Expand Down Expand Up @@ -703,6 +702,7 @@ def Test():
# bear_store.increase_population()
# assert rc._find(v.Alert).widget.children[0] == "2 bears around here"


# storage_key = bear_store.storage_key
# redis_dict = bear_store._storage.observable_dict
# redis_dict[storage_key] = {"type": "brown", "count": 3}
Expand Down
1 change: 0 additions & 1 deletion tests/unit/telemetry_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


def test_telemetry_basic(mocker):

post: unittest.mock.MagicMock = mocker.spy(requests, "post")
solara.server.telemetry.track("test_event", {"test_prop": "test_value"})
post.assert_called_once()
Expand Down

0 comments on commit e03ceff

Please sign in to comment.