easier linting in jupyterhub_config

noqa get_import satisfies most linters
This commit is contained in:
Min RK
2024-01-23 15:21:13 +01:00
parent 4375c2db96
commit 5e166970fa
10 changed files with 15 additions and 3 deletions

View File

@@ -27,9 +27,9 @@ def clean_dir_hook(spawner):
if os.path.exists(temp_path) and os.path.isdir(temp_path):
shutil.rmtree(temp_path)
c = get_config() # noqa
# attach the hook functions to the spawner
# pylint: disable=undefined-variable
c.Spawner.pre_spawn_hook = create_dir_hook
c.Spawner.post_stop_hook = clean_dir_hook