Skip to content

Commit 2fe3d73

Browse files
pre-commit-ci[bot]andrii-i
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent f64285f commit 2fe3d73

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jupyter_scheduler/models.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,29 @@
1313

1414
class NotificationEvent(str, Enum):
1515
"""
16-
Enum for events triggering notifications. Implementers can extend
16+
Enum for events triggering notifications. Implementers can extend
1717
this enum to include additional notification events as needed.
1818
1919
Attributes:
2020
SUCCESS (str): Sent when a job completes successfully.
2121
FAILURE (str): Sent on job failure.
2222
STOPPED (str): Sent when a job is manually stopped.
2323
"""
24+
2425
SUCCESS = "Success"
2526
FAILURE = "Failure"
2627
STOPPED = "Stopped"
2728

2829

2930
class Notification(BaseModel):
3031
"""Represents a notification.
31-
32+
3233
Attributes:
3334
send_to (List[str]): A list of symbols (e.g., email addresses) to which notifications should be sent.
3435
events (List[NotificationEvent]): A list of events that should trigger the sending of notifications.
3536
include_output (bool): A flag indicating whether a output should be included in the notification. Default is False.
3637
"""
38+
3739
send_to: List[str]
3840
events: List[NotificationEvent]
3941
include_output: bool
@@ -44,6 +46,7 @@ class RuntimeEnvironment(BaseModel):
4446
execution will happen. For example, conda
4547
environment.
4648
"""
49+
4750
name: str
4851
label: str
4952
description: str

0 commit comments

Comments
 (0)