Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #140

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.13
rev: v0.9.2
hooks:
- id: ruff
args:
Expand Down
8 changes: 5 additions & 3 deletions starfyre/dist_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
def write_python_client_file(path: Path):
dist_path = Path(path) / "dist"
dist_path.mkdir(exist_ok=True)
with pkg_resources.path("starfyre.js", "store.py") as store_py, pkg_resources.path(
"starfyre.js", "dom_helpers.py"
) as dom_helpers, pkg_resources.path("starfyre.js", "starfyre.py") as starfyre:
with (
pkg_resources.path("starfyre.js", "store.py") as store_py,
pkg_resources.path("starfyre.js", "dom_helpers.py") as dom_helpers,
pkg_resources.path("starfyre.js", "starfyre.py") as starfyre,
):
store_path = dist_path / "store.py"
shutil.copy(str(store_py), str(store_path))
dom_helpers_path = dist_path / "dom_helpers.py"
Expand Down
2 changes: 1 addition & 1 deletion starfyre/dom_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def hydration_helper(component: Component) -> tuple[str, str, str, str]:
return html, css, js, client_side_python

if component.css:
css += f"{ component.css }\n"
css += f"{component.css}\n"

if component.js:
js += f"{component.js}\n"
Expand Down