Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fix black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Nov 15, 2021
1 parent 756475d commit 82224e4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
9 changes: 7 additions & 2 deletions altair_saver/savers/_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,16 @@ def _serve(cls, content: str, js_resources: Dict[str, str]) -> str:
if cls._provider is None:
cls._provider = Provider()
resource = cls._provider.create(
content=content, route="", headers={"Access-Control-Allow-Origin": "*"},
content=content,
route="",
headers={"Access-Control-Allow-Origin": "*"},
)
cls._resources[resource.url] = resource
for route, content in js_resources.items():
cls._resources[route] = cls._provider.create(content=content, route=route,)
cls._resources[route] = cls._provider.create(
content=content,
route=route,
)
return resource.url

@classmethod
Expand Down
4 changes: 3 additions & 1 deletion altair_saver/savers/tests/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def test_html_save(
@pytest.mark.parametrize("embed_options", [None, {"theme": "dark"}])
@pytest.mark.parametrize("case, data", get_testcases())
def test_html_mimebundle(
case: str, data: Dict[str, Any], embed_options: Optional[dict],
case: str,
data: Dict[str, Any],
embed_options: Optional[dict],
) -> None:
saver = HTMLSaver(data["vega-lite"], embed_options=embed_options)
bundle = saver.mimebundle("html")
Expand Down
4 changes: 3 additions & 1 deletion altair_saver/savers/tests/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,9 @@ def exec_path(name: str) -> str:

@pytest.mark.parametrize("suppress_warnings", [True, False])
def test_stderr_suppression(
interactive_spec: JSONDict, suppress_warnings: bool, capsys: SysCapture,
interactive_spec: JSONDict,
suppress_warnings: bool,
capsys: SysCapture,
) -> None:
message = "WARN Can not resolve event source: window"

Expand Down

0 comments on commit 82224e4

Please sign in to comment.