Skip to content

Commit 89f5889

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 61f3fc9 commit 89f5889

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

jupyter_scheduler/extension.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def initialize_settings(self):
9393
if scheduler.task_runner:
9494
loop = asyncio.get_event_loop()
9595
loop.create_task(scheduler.task_runner.start())
96-
96+
9797
self._update_last_activity()
9898

9999
def _update_last_activity(self):
@@ -102,4 +102,6 @@ def _update_last_activity(self):
102102
Updates the `last_acitivity_times` dict in the web application. When running with jupyterhub, this prevents
103103
the culler from thinking the server is idle.
104104
"""
105-
self.serverapp.web_app.settings["last_activity_times"]["jupyter_scheduler"] = datetime.now(timezone.utc)
105+
self.serverapp.web_app.settings["last_activity_times"]["jupyter_scheduler"] = datetime.now(
106+
timezone.utc
107+
)

jupyter_scheduler/scheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def __init__(
101101
environments_manager: Type[EnvironmentManager],
102102
config=None,
103103
update_last_activity=None,
104-
**kwargs
104+
**kwargs,
105105
):
106106
super().__init__(config=config, **kwargs)
107107
self.root_dir = root_dir
@@ -419,7 +419,7 @@ def __init__(
419419
environments_manager=environments_manager,
420420
config=config,
421421
update_last_activity=update_last_activity,
422-
**kwargs
422+
**kwargs,
423423
)
424424
self.db_url = db_url
425425
if self.task_runner_class:

0 commit comments

Comments
 (0)