Skip to content

Commit 92bf1b1

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

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

jupyterhub_idle_culler/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,9 @@ async def handle_server(user, server_name, server, max_age, inactive_limit):
237237

238238
should_cull = (
239239
inactive is not None
240-
and cull_arbiter(inactive=inactive, inactive_limit=inactive_limit, server=server)
240+
and cull_arbiter(
241+
inactive=inactive, inactive_limit=inactive_limit, server=server
242+
)
241243
and (
242244
(cull_default_servers and is_default_server)
243245
or (cull_named_servers and is_named_server)

tests/test_idle_culler.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ async def test_custom_cull_arbiter(cull_idle, start_users, admin_request):
5454
assert await count_active_users(admin_request) == 0
5555
await start_users(3)
5656
assert await count_active_users(admin_request) == 3
57-
await cull_idle(inactive_limit=300, logger=app_log, cull_arbiter=cull_arbiter_function)
57+
await cull_idle(
58+
inactive_limit=300, logger=app_log, cull_arbiter=cull_arbiter_function
59+
)
5860
assert await count_active_users(admin_request) == 0
5961

6062

0 commit comments

Comments
 (0)