Skip to content

Commit 6337409

Browse files
Fix whitespace and formatting issues in lemcal component
- Remove trailing whitespace from blank lines in docstrings - Apply ruff formatting to ensure consistent code style - Resolves pre-commit CI failures Co-Authored-By: Alek <alek@pynecone.io>
1 parent 25b91e1 commit 6337409

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

reflex_ui/blocks/lemcal.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
"""Lemcal booking integration for Reflex applications."""
22

3-
import reflex as rx
43
from typing import Any
54

5+
import reflex as rx
66

77
LEMCAL_SCRIPT_URL = "https://cdn.lemcal.com/lemcal-integrations.min.js"
88

99

1010
def get_lemcal_script() -> rx.Component:
1111
"""Generate Lemcal script component for a Reflex application.
12-
12+
1313
Returns:
1414
rx.Component: Script component needed for Lemcal integration
1515
"""
@@ -32,15 +32,15 @@ def lemcal_button(
3232
Wraps provided child (or a default button) in a div with the Lemcal
3333
integration class and data attributes so that the external script can
3434
attach the booking behavior.
35-
35+
3636
Args:
3737
child: Custom component to wrap (defaults to a button with label)
3838
label: Default button text if no child provided
3939
class_name: Additional CSS classes to apply
4040
user_id: Lemcal user ID for booking integration
4141
meeting_type: Lemcal meeting type ID for booking integration
4242
**props: Additional props to pass to the wrapper div
43-
43+
4444
Returns:
4545
rx.Component: Lemcal button wrapper component
4646
"""
@@ -64,17 +64,17 @@ def lemcal_calendar(
6464
**props: Any,
6565
) -> rx.Component:
6666
"""Lemcal booking calendar embed component.
67-
67+
6868
Creates a div with the Lemcal calendar integration class and data attributes.
6969
Optionally refreshes the Lemcal integration when the component mounts.
70-
70+
7171
Args:
7272
user_id: Lemcal user ID for booking integration
7373
meeting_type: Lemcal meeting type ID for booking integration
7474
class_name: Additional CSS classes to apply
7575
refresh_on_mount: Whether to call window.lemcal.refresh() on mount
7676
**props: Additional props to pass to the wrapper div
77-
77+
7878
Returns:
7979
rx.Component: Lemcal calendar embed component
8080
"""
@@ -86,8 +86,8 @@ def lemcal_calendar(
8686
},
8787
**props,
8888
}
89-
89+
9090
if refresh_on_mount:
9191
calendar_props["on_mount"] = rx.call_function("window.lemcal.refresh")
92-
92+
9393
return rx.el.div(**calendar_props)

reflex_ui/blocks/lemcal.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
"""Lemcal booking integration for Reflex applications."""
22

3-
import reflex as rx
43
from typing import Any
54

6-
def get_lemcal_script() -> rx.Component: ...
5+
import reflex as rx
76

7+
def get_lemcal_script() -> rx.Component: ...
88
def lemcal_button(
99
child: rx.Component | None = ...,
1010
label: str = ...,
@@ -13,7 +13,6 @@ def lemcal_button(
1313
meeting_type: str = ...,
1414
**props: Any,
1515
) -> rx.Component: ...
16-
1716
def lemcal_calendar(
1817
user_id: str = ...,
1918
meeting_type: str = ...,

0 commit comments

Comments
 (0)