Skip to content

Commit 4bc2d48

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 9f610ac commit 4bc2d48

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

starfyre/dist_builder.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
def write_python_client_file(path: Path):
1616
dist_path = Path(path) / "dist"
1717
dist_path.mkdir(exist_ok=True)
18-
with pkg_resources.path("starfyre.js", "store.py") as store_py, pkg_resources.path(
19-
"starfyre.js", "dom_helpers.py"
20-
) as dom_helpers, pkg_resources.path("starfyre.js", "starfyre.py") as starfyre:
18+
with (
19+
pkg_resources.path("starfyre.js", "store.py") as store_py,
20+
pkg_resources.path("starfyre.js", "dom_helpers.py") as dom_helpers,
21+
pkg_resources.path("starfyre.js", "starfyre.py") as starfyre,
22+
):
2123
store_path = dist_path / "store.py"
2224
shutil.copy(str(store_py), str(store_path))
2325
dom_helpers_path = dist_path / "dom_helpers.py"

starfyre/dom_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def hydration_helper(component: Component) -> tuple[str, str, str, str]:
9494
return html, css, js, client_side_python
9595

9696
if component.css:
97-
css += f"{ component.css }\n"
97+
css += f"{component.css}\n"
9898

9999
if component.js:
100100
js += f"{component.js}\n"

0 commit comments

Comments
 (0)